Magnetic Hitbox Warp

Magnetic hover for high-value controls — an invisible field 20–45px around a nav item, primary CTA, or close button that begins reacting before the cursor reaches the edge, pulls the control's visual up to ~6px toward the pointer along the cursor vector, scales it slightly, and springs it back with a dampened recoil on exit. Use this whenever the user asks for "magnetic buttons", "cursor attraction", "the button follows the mouse", "premium nav hover", "gravity / pull effect", an Awwwards-style header, or wants primary actions and menu items to feel more alive than a colour snap — and when reviewing hover states on a small set of hero controls.

fernandokylas Updated

File contents

fernandokylas/editorial-web-craft/tree/main/skills/magnetic-hitbox-warp commit c556f272da

Frequently asked questions

npx skillmds@latest add fernandokylas/magnetic-hitbox-warp