Skip to content

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.

byEdu Calvofrom Smoothui

Loading preview

Installation

terminal
pnpm dlx layro-cli add @educlopez/magnetic-field

New project? Start with init. Writes third-party code and installs packages with scripts off.

Code

Demo

Sign in to see the code

Free, with GitHub, Google or email. The install command above works without an account.

Sign in

Versions

  1. 1.0.0 · current

    Nov 7, 2026

    First release.

Similar components