Hover· 8 sites
Reference: Pointer events, MDN contributors
How it works
A decorative label follows a fine pointer while the real cursor and touch targets stay intact.In 5 steps.
A small label can explain what a large media target does. Keep it decorative: never hide the operating-system pointer, never make it the only action label, and never make a finger chase it. The follower eases by elapsed time, so refresh rate does not change its weight.
The controls below are authored demonstration values, not measurements of the linked sites. The stored fits currently describe scroll smoothing and intro curves, not this effect's geometry; see each site's spec sheet for those separately measured values and fit errors.
- 01
Keep a real control
The artwork includes a conventional button with a persistent label. The follower is aria-hidden and pointer-events: none.
- 02
Gate pointer input
Only fine pointers with hover can move the label. Touch and keyboard receive the same action without a moving decoration.
- 03
Interpolate with time
Read the UI duration token and compute a time-correct exponential approach to the pointer. Snap the initial position so it never flies in from a corner.
- 04
Reset on exit
Hide on pointer leave, blur and touch; the frame loop sleeps when the follower has settled.
- 05
Dispose cleanly
Call destroy() on unmount to remove pointer and button listeners, disconnect observers and cancel the pending frame. This also makes development remounts safe.