Skip to content
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

PropTypeDefaultDescription
childrenstring"build|design|launch|scale"Words separated by "|" (alternative to words).
wordsstring[]"[]"List of words that roll one after another.
prefixstring"Your team"Fixed text before the roller.
suffixstring""Fixed text after the roller.
sizenumber40Letter size, in px.
intervalnumber2300Milliseconds between each word change.
curvaturenumber42Angle between one word and the next on the drum, in degrees.
pillbooleantrueDraws a pill behind the changing word.
colorstring"#F4F5F7"Color of the fixed text.
accentstring"#7CF5C6"Color of the roller word.

Installation

Install it

1Install the package

npm i furin-ui

2Import 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

  • Inflated metallic balloon letters that bounce and squash under the cursor.

    Text

  • Text that grows into crystal facets that catch the light.

    Text

  • Embossed text on cotton paper, lit by a raking light that follows the cursor.

    Text