05.11 · Text & Typography

Rotate Word Carousel

One word in a sentence keeps swapping for the next. Best for hero headlines.

Watch it

It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.

We craft for
Designers

Try it

Change a setting and see the difference as it moves.

Slide direction

Which way the words slide.

Speed

How fast one word slides out and the next in.

Time on each word

How long each word stays still to be read.

More optionsFewer options

A new color draws the eye to each change.

The words that stay still before the changing one.

Words of similar length keep the sentence steady.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a rotating word to [your headline, with the word that should change]. Keep the rest of the sentence still and swap only that one word: the current word slides out of sight and the next one slides in from the opposite side, clipped by an invisible box so it seems to come from behind the text. Hold each word long enough to read, then move on, repeating the list forever. Words of similar length keep the sentence from jumping. Screen readers should hear each new word once. If the visitor has reduced motion turned on, swap the words without sliding. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Hero headlines
  • Taglines
  • Service lists

Avoid on

  • Body text
  • Long word lists