Back

Word Rotate

Satu Visual ComponentNew

Rotates through words with a vertical slide + fade.

Build faster

Installation

Add it with the CLI:

Terminal

$

Or open the Code tab above and copy it in manually — it relies on the standard cn() helper from @/lib/utils.

Usage

Pass an array of words — it slides through them on a loop.

Props

PropTypeDefaultDescription
wordsstring[]Words to rotate.
classNamestringExtra classes.
durationnumber2500Ms per word.

Requirements

Install the npm dependencies:

Terminal

$