Word Magnet — React Component

Cursor-reactive text where whole words gently repel from the pointer and spring back without splitting letters.

Motion Effectshoverspringtextcursormagnetichoverspringframer-motion

Word Magnet

Playground

Shape the component before you copy it.

Adjust the important props for this component and grab JSX that matches your choices.

Animation effects

hoverspring

Copy-paste ready

Use the Code tab above to inspect and copy this component into your project.

About Word Magnet

Word Magnet is a physics-based word layout where individual words repel from cursor proximity using Framer Motion spring animations. Words scatter outward as the mouse approaches and snap back with spring physics when it moves away. Each word is an independent motion element with its own spring configuration. Add it to hero sections or decorative text displays as a memorable interactive moment that rewards visitors who move their cursor into the text.

Common use cases

  • Hero section decorative text
  • Interactive brand and tagline displays
  • Portfolio and creative agency heroes
  • Playful landing page interaction elements