Magnetic Letters
FreeEvery letter is pulled toward the cursor by a bouncy spring, tinting and growing as it gets close.
Text
A headline whose letters get thrown off when the cursor passes quickly and spring back into place.
Free forever
MIT license, for personal and commercial projects. See installation
Made with Furin: Pill Nav · Metal Button · Copy Morph
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | "Let the wind carry them away" | Headline text: every letter is a particle the wind can tear loose. |
strength | number | 1 | Gust strength: how far and how fast the letters fly off; 0 turns the wind off. |
threshold | number | 650 | Cursor speed (px/s) above which it blows; slower than that, nothing happens. |
recovery | number | 1.8 | Seconds a letter takes to return to its place. |
radius | number | 150 | Reach of the gust around the cursor, in px. |
spin | number | 1 | How much the letters rotate as they fly; 0 keeps them from spinning. |
color | string | "inherited" | Letter color (inherits the text color by default). |
accent | string | "#E8452C" | Color the letters take while flying (same as the text color to turn it off). |
className | string | "" | Extra CSS class for the container. |
style | CSSProperties | undefined | Inline styles for the container (size and font go here). |
1Install the package
npm i furin-ui2Import it
import { Gust } from "furin-ui";Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.
Each file ships its own CSS: there's nothing else to install.
Every letter is pulled toward the cursor by a bouncy spring, tinting and growing as it gets close.
Text
Words melt into one another with a viscous blur-and-threshold transition and a liquid sheen.
Text