Guides / Motion

Magnetic Button

Magnetic button: the button is gently pulled toward the cursor, springing back on leave. For the one primary CTA—everywhere cheapens it.

Live demo

Move the pointer closer

Implementation prompts

Standard

Primary CTA with magnetic hover: button translates up to 8px toward the cursor and springs back on leave.

With motion

Magnetic CTA button: translates toward cursor (max 8px) with spring physics on release.
Design spec entry
### Magnetic Button (#magnetic-btn)

Category: Motion

Magnetic button: the button is gently pulled toward the cursor, springing back on leave. For the one primary CTA—everywhere cheapens it.

- Do: Primary CTA with magnetic hover: button translates up to 8px toward the cursor and springs back on leave

With motion: Magnetic CTA button: translates toward cursor (max 8px) with spring physics on release.

Live demo: https://uidesignmd.com/guides/magnetic-btn/