Skip to content

Text loop

Cycles through a list of words on a timer.

Built for designers

text-loop-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Usage

tagline.tsx

Pause

Set active to false to stop the loop. Give users a way to pause a loop that runs next to other content. Also install Toggle button.

Press / to search.

text-loop-pause-demo.tsx

API reference

values: readonly string[]Required
Sets the words to cycle through. The first value shows when motion is reduced.
interval: number = 2.5
Time in seconds that each value stays on screen.
active: boolean = true
Runs the loop. Set false to stop on the current value. The loop also stops when it is off screen.