FreeText
Word Roller
A word rolls vertically between options on a spring-loaded drum, and its pill changes width along with it.
- Plan
- Free · MIT
- Dependencies
- React only
- Props
- 10 (9 adjustable)
Free forever
MIT license, for personal and commercial projects. See installation
Your team build, design, launch, scale
Made with Furin: Pill Nav · Metal Button · Copy Morph
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | string | "build|design|launch|scale" | Words separated by "|" (alternative to words). |
words | string[] | "[]" | List of words that roll one after another. |
prefix | string | "Your team" | Fixed text before the roller. |
suffix | string | "" | Fixed text after the roller. |
size | number | 40 | Letter size, in px. |
interval | number | 2300 | Milliseconds between each word change. |
curvature | number | 42 | Angle between one word and the next on the drum, in degrees. |
pill | boolean | true | Draws a pill behind the changing word. |
color | string | "#F4F5F7" | Color of the fixed text. |
accent | string | "#7CF5C6" | Color of the roller word. |
Installation
Install it
1Install the package
npm i furin-ui2Import it
import { WordRoller } 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
Embossed text on cotton paper, lit by a raking light that follows the cursor.
Text