V
viberdy.dev

Magnetic Button · viberdy.dev

A button that is pulled toward the pointer across a field around it: the whole body drifts, the label trails on a softer spring, a specular light and edge glint follow the cursor, it squashes on press and springs back. No dependencies.

npx shadcn@latest add @viberdy/magnetic-button
Preview Magnetic Button on viberdy.dev's site (opens in a new tab)
Loading the source for magnetic-button…
Files

—