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 on a spring.
Try it: Move over the card; pick a colour.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/lit-product-card-3d.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/lit-product-card-3d. You can also copy the source into components/ui/lit-product-card-3d.tsx (view on GitHub).
Usage
import { LitProductCard3D } from '@/components/ui/lit-product-card-3d'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
name / tagline / price | string | 'Aero Headphones' | Copy. |
colors | { name, value }[] | Midnight / Sunset / Sage | Swatches. |
onAdd | (color) => void | — | Add to bag. |
Dependencies
motionlucide-react
Related Motion Showcase components
- 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.
- 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.
- 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.
- 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.
- Blur Cascade Heading
A keynote-style display headline that resolves out of focus: words or letters rise through a mask from blur to sharp on springs, and highlight words land last in a gradient.
- 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.