Parallax Depth Stack
A fanned card stack on CSS 3D layers: the pointer tilts it and each layer parallaxes by depth with a moving sheen; click or Enter sends the front card to the back on a spring.
Try it: Move over the stack; click to cycle.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/parallax-depth-stack.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/parallax-depth-stack. You can also copy the source into components/ui/parallax-depth-stack.tsx (view on GitHub).
Usage
import { ParallaxDepthStack } from '@/components/ui/parallax-depth-stack'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
cards | DepthCard[] | DEFAULT_DEPTH_CARDS | { title, meta, from, to } |
Dependencies
motionlucide-react
Related Motion Showcase components
- Spring Stagger Grid
A filterable tile grid that enters on a diagonal ripple (delay = row + column), re-flows on layout springs when filtered and exits with a quick scale-down.
- Kinetic Stats Band
A band of big tabular numbers that count up on an expo curve when scrolled into view, with motion blur on the fast part and sparklines that draw themselves.
- Magnetic Dot Grid
A canvas field of dots that lean toward the pointer on spring physics, swell and tint near it, then settle with a soft wobble; clicks send a ripple. Theme-aware, static on reduced motion.
- Morph Button Modal
A pill button that physically becomes its dialog: the surface expands on a shared-layout spring, the label blurs into a form, and submit shrinks it back into a success pill. Focus trapped and…
- Page Curtain Transition
Route changes play a staggered column curtain: panels sweep up to cover, the next page name flashes on the curtain, then they lift away to reveal it. Reduced motion cross-fades.
- Gradient Mesh Hero
A hero over four soft colour fields that drift on slow offset orbits and lean toward the pointer, with fine grain, a glass eyebrow pill and a blur-staggered headline.