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.
Inside, the whole text is there from the start, faint: typing only makes more of it solid, one letter at a time, with the cursor after the last one.
Even beat types every letter after the same pause. Like a person varies each pause a little, as real typing does; the ticks under each show the gaps.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.