Lenticular

Day & NightMove across to tilt
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-lenticular

About 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

More cards

See all
You found it
Code: MOVIN-25
Peel me
Drag the corner
PeelGet code
Order #2481
42.00
Espresso x27.00
Croissant4.50
Sketchbook30.50
Total42.00
ReceiptGet code
You wonA free month
Scratch-offGet code
01Swiss gridDrag me sideways
02BauhausForm follows function
03BrutalismRaw and honest
04MemphisLoud on purpose
Swipe DeckGet code