Lenticular Shift Card
A postcard printed on a ridged lenticular sheet: tilting interlaces the scenes in fine vertical blinds that sweep across the print while a specular band rides the ridges.
Try it: Move across the card to tilt it; ←/→ or the chips switch frames.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/lenticular-shift-card.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/lenticular-shift-card. You can also copy the source into components/ui/lenticular-shift-card.tsx (view on GitHub).
Usage
import { LenticularShiftCard } from '@/components/ui/lenticular-shift-card'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
items | { id, label, caption?, src?, hue? }[] | DEFAULT_LENTICULAR_FRAMES | 2–4 frames; pass src for real artwork. |
title | string | 'Harbour Light' | Caption title. |
autoRock | boolean | true | Gently rocks the print while idle. |
index / defaultIndex / onIndexChange | number | 0 | Controlled or uncontrolled frame. |
Dependencies
motionlucide-react
Related Cards components
- Curved Tile Wall
A gallery bent onto a sphere section in real CSS 3D: mixed-height frames drift, swing with drag, pop toward you on hover and open in a focused lightbox.
- Origami Unfold Card
A trail ticket that unfolds like a paper map: press the cover and two creased panels swing down in sequence on real CSS-3D hinges, catching light as they flatten, while the route draws itself and…
- Fan Deck Carousel
Poster cards fanned around an upright hero card; swipe, arrow keys or buttons re-fan the hand on springs while a blurred copy of the active art crossfades behind.
- Folder Fan Showcase
Social post cards wait inside a frosted-glass folder, peeking over the rim of a blurred front pocket. Hover or focus and they rise and fan out on staggered springs; pick one and it lifts clear of…
- Tide Deck
Drag a deck whose depth reacts to velocity.
- Swipe Carousel Post
An Instagram-style multi-slide post card: drag or swipe the media and the track snaps on a spring, a segmented bar fills with slide progress, the dot pager shrinks toward the edges and a double-tap…