Skip to content
PixiKit

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
NameTypeDefaultDescription
words(string | WordRotatorWord)[]["teams", "agents", "designers", "everyone"]The words that take turns, as text or as `{ text, icon }`. The first one shows at rest.
intervalnumber2400How long each word stays, in milliseconds.
durationnumber450How long a swap takes, in milliseconds; the slot's width follows in the same time.
blurnumber5The blur a word fades in from and out to, in pixels.
colorstring"#7c3aed"The colour of the words. `currentColor` follows the text around it.
pauseOnHoverbooleantrueHold the current word while the pointer is over it or it has focus.
livebooleanfalseAnnounce each new word to screen readers. Off, they hear the whole list once.
fontSizenumber72The size of the words in pixels, shrinking to fit a narrow container; 0 follows the text around it.
fontFamilystring"inherit"The font, as a CSS font-family; `inherit` follows the page.
classNamestringNone