Adding a little animation to a website can make it eye-popping. There are various ways you can create animations, one of which is adding a typing effect to your text. Typewriter text animations are quick to implement and can do wonders for your website by making it look exceptionally impressive.
To begin with, some simple typing animations created using pure CSS are shown which can give an elegant look to your text and website as a whole.
1. A Simple Typing Effect with Blinking Cursor
This is a simple yet beautiful typewriter effect created using CSS animation. It uses Source Code Pro as a font base to give it the effect of typewriter. Its code is explained in the post - Creating Typewriter Text Animation using CSS.
2. Style the Cursor
This animation uses a horizontal blinking cursor having the width of the characters of the text. Simply changing the cursor shape can give your animation a different look. You can try using other types and shapes of cursors as well.
3. Typing Effect Without Cursor
This animation shows typewriter effect without cursor. This is achieved by removing the right border of the paragraph containing the text.
4. Smooth Typing Effect with Blinking Cursor
In the previous demos, the steps( ) function was given as value to the
animation-timing-function property. It showed the typing animation in steps in which each step displayed a character.
To make this animation smooth, the linear( ) function is used in place of the steps( ) function in this demo.
5. Text Moving to Left
This type of animation is another way to make your typing effect look cool. It is achieved by positioning the paragraph containing the text to the right.
6. A Typing Effect with Center Aligned Text
This effect is achieved by horizontally center aligning the paragraph containing the text.
The animations shown above are created using just CSS. The next two animations show typewriter effect for multiline text.
7. Multiline Typewriter Effect
Typing effect can be extended to multiple lines of text as well. This demo displays the different lines of code in a pre tag as if they are being typed.
8. Another Multiline Typewriter Effect
This demo shows typewriter effect for multiple text lines of a paragraph without displaying cursor.
Another trending typing effect is erasing the typed text and typing some other text in place of it. Few such animations are shown below.
9. Erasing Typos
This is a very cool effect created using only CSS, which makes it appear as if someone is typing the text and erasing the letters typed by mistake.
10. Simple Typing Carousel
This is a pretty popular text animation technique. It is sometimes used by websites to showcase their products range, services offered or to list other such descriptions.
11. Typing and Deleting Multiline Effect
If you want to type and delete multiline text, then this demo is for you. It's a fun effect which you can use on your homepage in place of displaying a lot of lines of text.
12. Making It User Interactive
Lastly, we have this demo which allows the user to type text and erase it as if it is being typed and erased on a text editor. There are separate buttons for the two operations. This effect can be used in a lot of applications, like making the user choose from a list of questions and erasing the selected question when he submits an answer to it.