FreeText
Magnetic Letters
Every letter is pulled toward the cursor by a bouncy spring, tinting and growing as it gets close.
- Plan
- Free · MIT
- Dependencies
- React only
- Props
- 8 (8 adjustable)
Free forever
MIT license, for personal and commercial projects. See installation
Magnetic
Made with Furin: Pill Nav · Metal Button · Copy Morph
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | string | "Magnetic" | The text (line breaks are supported). |
size | number | 96 | Letter size, in px. |
radius | number | 170 | Cursor attraction radius, in px. |
strength | number | 0.3 | How far each letter moves toward the cursor, as a fraction of its size. |
stiffness | number | 210 | Spring stiffness: higher feels twitchier. |
idle | boolean | true | When the cursor is away, an invisible magnet wanders across the text. |
color | string | "#E9EBEF" | Text color. |
accent | string | "#7CF5C6" | Color the attracted letters tint toward. |
Installation
Install it
1Install the package
npm i furin-ui2Import it
import { MagneticLetters } 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.
Dependencies
- React
- 18 or later
- Other libraries
- none
- License
- MIT
Each file ships its own CSS: there's nothing else to install.
Keep exploring
Morph Text
FreeWords melt into one another with a viscous blur-and-threshold transition and a liquid sheen.
Text