component
Cursor Magnet Button
By Lucas

Details
- LucasAuthor
- componentType
- 2026-08-05Published
- 2026-08-05Updated
- 2026-08-05Added
- CursorsCategories
Summary
It reaches for your cursor
Description
Bring the cursor close and the button drifts toward it on a damped spring — no overshoot, no wobble. The label trails slightly behind the button itself: that lag is what reads as elastic, without it the button would just slide as one dead block. On hover, a fill sweeps out from the exact point the cursor crossed the edge, and the label flips colour with it. On click, a light press-down. Still a real button (or a real link): reachable by keyboard, with a visible focus ring, no JavaScript involved in the hover or focus state — that part is plain CSS, so it behaves exactly the same with a mouse or a keyboard. DOM and requestAnimationFrame, no dependencies, nothing loaded from outside. Honours prefers-reduced-motion. Free.
Introduction
It reaches for your cursor
Rank history
Daily rank per list, from the first snapshot — lower is better.
- All · #4058