Magnetic

Magnetic
Layers follow cursor
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-magnetic

About this component

Card layers move toward the cursor at different strengths (the orb the most, the backdrop at 30%, the text at 15%), creating a parallax depth illusion without any 3D rotation or perspective.

Triggers

  • Hover
  • Mouse tracking

Techniques

  • Transform only
  • Mouse tracking

Difficulty

Intermediate

Accessibility

Reduced motion

Mouse-tracking transforms skipped under prefers-reduced-motion; card stays static.

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

More cards

See all
Shimmer
Hover for shine
ShimmerGet code