Web · motion
Magnetic Cursor
Also called: cursor follower, magnetic buttons
What it is
A custom cursor trails the pointer with a lag, and buttons lean toward it when it comes close.
What it says: The page responds to you.
How it is usually built: pointermove plus a requestAnimationFrame easing loop
With reduced motion: Native cursor; buttons stay still.
The live demo runs in the Lookbook: open Magnetic Cursor there.
The prompt
Paste it into a coding AI building the page.
Prompt
a custom circular cursor that follows the pointer with 0.15 easing, grows over links, and magnetic buttons that shift up to 12px toward the pointer within an 80px radius
Not this
What it gets confused with, or how it fails. Use it as a negative prompt where the tool takes one.
Not this
Not for touch screens: hide it there, and keep the native cursor over text.