05.02 · Text & Typography

Typewriter Effect

Text types itself out behind a blinking cursor. Best for short taglines.

Watch it

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

Try it

Change a setting and the animation plays again.

Speed

The time between keystrokes.

Cursor shape

Block looks like a terminal, line like a text editor.

Backs up over the last word and types a new ending.

More optionsFewer options

Small random pauses make it feel less mechanical.

Cursor color

Pick a color that stands out from the text.

Short lines work best; long text is slow to wait for.

Copy the prompt

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

Add a typewriter effect to [your tagline or short text]. The text should appear one character at a time, as if someone is typing it, with a blinking cursor always just after the last character. Unless the settings turn it off, vary the time between keystrokes slightly so it feels typed by a person rather than a machine. When the settings include it, back up over the last word and type a new ending. Keep it to short text, because long text is slow to wait for. Screen readers should hear the full text once, not each character. If the visitor has reduced motion turned on, show the full text 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

  • Taglines
  • Chat messages
  • Terminal screens
  • Short intros

Avoid on

  • Long text
  • Buttons and labels