Magnetic Button
A button that moves slightly when hovered, creating a magnetic effect. It follows the cursor within a set radius and returns to its original position when the cursor leaves. Use it to add subtle visual feedback to interactive elements.
Loading preview
Installation
terminal
npx layro-cli add @educlopez/magnetic-button
npx layro-cli add @educlopez/magnetic-button
bunx layro-cli add @educlopez/magnetic-button
New project? Start with init. Writes third-party code and installs packages with scripts off.
Code
Sign in to see the code
Free, with GitHub, Google or email. The install command above works without an account.
Sign inVersions
1.0.0 · current
Nov 7, 2026
First release.







