Magnetic Field
A MagneticField component renders animated elements that respond to pointer movement. It applies forces like attract, repel, or orbit based on position and settings. Use it to create dynamic, interactive visual effects in a UI.
Loading preview
Installation
terminal
npx layro-cli add @educlopez/magnetic-field
npx layro-cli add @educlopez/magnetic-field
bunx layro-cli add @educlopez/magnetic-field
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.







