Tilt

Perspective
Move cursor over card
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-tilt

About this component

Card tilts in 3D toward the cursor using CSS perspective and rotateX/Y driven by mouse position. Springs back to flat on leave.

Triggers

  • Hover

Techniques

  • Transform only
  • Mouse tracking

Difficulty

Intermediate

Accessibility

Reduced motion

Mouse tracking disabled under prefers-reduced-motion; card stays flat.

Use it in anything you build, commercial and client work included. Licence

More cards

See all
> run_
Typewriter
Text types on hover
TypewriterGet code

Signups

Last 8 weeks

4,812+18%

AcetateGet code
FERRYNo. 2291

Oban → Craignure

Dep 14:00 · Pier 2£7.20
AfloatGet code