Tilt
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardTilt(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-tiltAbout 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 allSignups
Last 8 weeks
4,812+18%
- Week 6: launch week, the peak.
- Week 3: outage.
Oban → Craignure