Word Rotator
A word in a headline that swaps with a soft blur; the slot grows to fit each word and a word can carry an icon.
pixikit.com/docs/components/word-rotator
Customize
Interval2400ms
Duration450ms
Blur5px
Color
Pause on hover
Live
Font size72px
Font family
Props
10| Name | Type | Default | Description |
|---|---|---|---|
words | (string | WordRotatorWord)[] | ["teams", "agents", "designers", "everyone"] | The words that take turns, as text or as `{ text, icon }`. The first one shows at rest. |
interval | number | 2400 | How long each word stays, in milliseconds. |
duration | number | 450 | How long a swap takes, in milliseconds; the slot's width follows in the same time. |
blur | number | 5 | The blur a word fades in from and out to, in pixels. |
color | string | "#7c3aed" | The colour of the words. `currentColor` follows the text around it. |
pauseOnHover | boolean | true | Hold the current word while the pointer is over it or it has focus. |
live | boolean | false | Announce each new word to screen readers. Off, they hear the whole list once. |
fontSize | number | 72 | The size of the words in pixels, shrinking to fit a narrow container; 0 follows the text around it. |
fontFamily | string | "inherit" | The font, as a CSS font-family; `inherit` follows the page. |
className | string | None |