Motion.library

Magnetic Pull

Featured

The button and its label track the cursor within a capture radius on separate spring constants, so the label lags the shell and creates depth.

buttons / btn-magnetic
Playback
Parameters
Pull0.3
Complexity
Intermediate
Interaction
Cursor, Hover
Stack
Framer Motion
Category
buttons

Where to use it

Landing PagesPortfolio

Ships as motions/buttons/btn-magnetic.tsx — a self-contained component that accepts playing, speed, params and respects reduced-motion.

Related motions