Typewriter effect

Also called typing animation, typing effect, or typewriter text

A text animation that reveals a line one character at a time, as if someone were typing it, usually with a blinking caret at the end.

What is Typewriter effect?

A typewriter effect adds the characters of a line one by one at a steady pace, with a caret (the text cursor) at the end. Many versions then delete the line and type the next phrase, so one headline can cycle through several ideas.

It suits hero headlines, chat-style intros, terminal looks, and search boxes that suggest example queries. Keep the lines short: at 50ms per character, a 40-character sentence takes two seconds to finish, and visitors rarely wait longer than that.

Reserve the width of the longest line so the layout does not jump as letters appear. Screen readers can announce every partial word, so give them the full text with an aria-label and hide the animated copy with aria-hidden. When someone prefers reduced motion, show the finished text right away.

Often confused with

Text scramble
A text scramble shows every character at once as random glyphs that settle into the real letters. A typewriter adds characters one at a time.
All terms

Text scramble

A text animation where each character flickers through random letters and symbols before settling on the final word, like a code being cracked.

Rotating words

A headline where one word keeps changing in place, rolling or fading through a short list while the rest of the sentence stays put.

Stepped animation

An animation that jumps through a set number of frames instead of moving smoothly, made with the CSS steps() timing function.

Reduced motion

An operating system setting that asks apps to minimize movement, which websites detect with the prefers-reduced-motion media query.