05.06 · Text & Typography

Marquee / Ticker

Text scrolls sideways in an endless loop, with no seam. Best for news tickers.

Watch it

It moves by itself. Pause it, or point at a row (tap it on a phone) to stop just that row.

Try it

Change a setting and see the difference as it moves.

Speed

How fast the text travels.

Text size

Large type is the usual choice for brand strips.

Space between items

The space around the text and the separator.

More optionsFewer options

Separator

The mark between repeats of the text.

Type your own words to see them scroll.

Copy the prompt

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

Add a marquee to [the text or items you want to scroll]. The text should scroll sideways in an endless loop with no visible jump: place two identical copies side by side, each at least as wide as the space it scrolls through, and move them by exactly one copy's width before starting over. Put a small mark between the repeats. Rows can run in opposite directions for a decorative band. Pointing at a row should stop it so people can read it, and a tap should do the same on touch screens. Screen readers should not announce the moving text again and again. If the visitor has reduced motion turned on, keep the text still. 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

  • News tickers
  • Brand strips
  • Client lists

Avoid on

  • Important messages
  • Long sentences