CSS Typing Animation Generator
Enter one line of text, a monospace font, speed and caret options, and copy the HTML and CSS for a typewriter animation that needs no JavaScript.
Enter one line of text, a monospace font, speed and caret options, and copy the HTML and CSS for a typewriter animation that needs no JavaScript.
A typewriter effect can be made with CSS alone. The element is as wide as the text in ch units, its width grows from zero using the steps() timing function, and a border on the right edge blinks like a caret.
Enter one line of text and the tool works out the character count, duration and keyframes. It uses a monospace font because each character must be exactly one ch wide. There is no live preview, because animations are switched off on this page; paste the code into your own page to see it.
animation: typing 3s steps(24, end) 1 forwards;
The width is set in ch units, the width of a zero. Only in a monospace font does every character match that width, so the reveal stays in step.
No. This version is for a single line. Several lines need JavaScript or one animation per line.
It is set to not wrap. Keep the text short or lower the font size so it fits.
Yes. The full text is in the HTML. The animation only reveals it visually.
Emoji and some non-Latin characters are wider than 1ch, so the reveal can be slightly out of step.