02.08 · Entrance & Exit

Letter-by-Letter Stagger

A phrase appears letter by letter or typewriter-style. Best for short headlines.

Watch it

It plays by itself. Turn on slow motion to see each part of the movement.

Hello, world.

Try it

Change a setting and the animation plays again.

Style

Cascade animates each letter; Typewriter types them.

Delay between letters

Longer delays feel slower and more theatrical.

How each letter appears

The small entrance every letter plays.

More optionsFewer options

Speed

How long each letter takes to settle.

Short phrases work best, up to 60 characters.

Copy the prompt

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

Add a letter-by-letter entrance to [a short phrase or headline]. In the cascade style, every letter plays a small entrance a moment after the previous one, so the phrase assembles from left to right. In the typewriter style, the letters appear one at a time as if someone is typing, with a blinking cursor when the settings include one. Use it only on short phrases, because long text becomes tedious to wait for. Screen readers should hear the whole phrase once, not letter by letter. If the visitor has reduced motion turned on, show the full phrase immediately. 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

  • Short headlines
  • Names and logos
  • Chat messages
  • Loading screens

Avoid on

  • Long text
  • Buttons and labels