Lenticular
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardLenticular(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-lenticularAbout this component
A ridged plastic lenticular card holding two pictures. Moving across it tilts the card and switches day to night through interleaved strips that widen with a registered custom property, flickering exactly like printed lenticulars, with a sheen running along the ridges.
Triggers
- Hover
- Mouse tracking
- Card
- Morph
Techniques
- @property
- CSS variables
- Gradient
- Mouse tracking
- 3D transform
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The card is focusable and keyboard focus flips it to night.
Reduced motion
It switches without tilting.
Use it in anything you build, commercial and client work included. Licence