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
| Prop | Type | Default | Description |
|---|---|---|---|
| words | string[] | — | Words to rotate. |
| className | string | — | Extra classes. |
| duration | number | 2500 | Ms per word. |
Requirements
Install the npm dependencies:
Terminal
$