Z-Stack Fan
Uilora Z-Stack Fan — 3D card deck that fans open on hover with spring physics.
Props
| Property | Type | Default | Description |
|---|---|---|---|
| cards | Array<{title: string, color: string}> | [{title: 'Air', color: 'bg-blue-200'}, ...] | Array of card objects with title and color (Tailwind class). |
| backgroundColor | string | #f5f5f5 | #f5f5f5 Background color (hex, rgb, or hsl). |
| collectionPrefix | string | Uilora Collection | Prefix text for collection labels. |
| hintText | string | HOVER TO EXPAND DECK | Hint text displayed at bottom. |
When to Use
Excellent for interactive portfolios, playful brands, and Next.js applications that want a tactile 'Fan-Stack' aesthetic. Use this gallery for an engaging experience where cards can be 'Inspected' with organic 3D perspective shifts.
Best Practices
Maintain scalable component architecture by keeping the card count balanced. Follow React best practices by using Framer Motion for the fan-expansion physics. Optimize for performance by managed the Z-index transitions.
Why This Component Matters
Stacked card decks create a sense of direct engagement and playfulness. This Uilora-ready template helps you build an interface that feels responsive and unique, turning static details into items for digital manipulation.
FAQ
QIs it really 3D?
Yes, the component uses localized CSS 3D transforms and Z-axis depth to create a realistic physical card fan that reacts to cursor focus.
QCan I use images?
Absolutely, each card is a container that supports high-fidelity imagery or colorful Tailwind gradients for the collection reveal.
QDoes it work on mobile?
The deck responds to touch-move events, though it's most impactful as a mouse-driven interactive element on desktop browsers.
Related Components
Editorial Layout
Asymmetric fashion-inspired bento grid with sharp edges and editorial styling, branded for Uilora.
Swiss Layout
Clean Swiss design bento grid with precise typography and minimal aesthetics, branded for Uilora.
Wabi Sabi Layout
Japanese-inspired bento grid with wabi-sabi aesthetics, imperfections, and Uilora branding.
