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.
Try it: Click Studio or Contact in the nav.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/page-curtain-transition.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/page-curtain-transition. You can also copy the source into components/ui/page-curtain-transition.tsx (view on GitHub).
Usage
import { PageCurtainTransition } from '@/components/ui/page-curtain-transition'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
pages | CurtainPage[] | DEFAULT_CURTAIN_PAGES | { id, label, title, body, tint } |
panels | number | 5 | Curtain columns. |
Dependencies
motionlucide-react
Related Motion Showcase components
- Lit Product Card 3D
A product card with real lighting: tilt follows the pointer, a specular highlight tracks the light while the cast shadow moves opposite, the product floats on its own Z layer and swatches recolour…
- 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.
- Timeline Scrubber
A media scrubber with a waveform that lights up behind the playhead, a thumb that grows while dragging, chapter markers that snap within 1.5 s, a time bubble and full slider keyboard support.
- 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.
- Spring Reorder List
A priority list reordered by dragging the grip: the lifted row scales and deepens its shadow while siblings part on springs. Keyboard ↑ ↓ on a grip moves rows with live announcements.
- 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.