
We’ll include this animation in the typed-out class’s rules and set its animation direction property to infinite to make the cursor disappear and reappear every. Inside our web page, this animation will change the border color of the typed-out element’s border - which is used as a cursor for the typewriter effect - from transparent to orange. This is where the steps() CSS function comes in. To make this animation reveal our text element letter by letter, or in steps, the way a typewriter would, we need to split the typing animation included by the typed-out class into steps in order for it to look like it’s being typed out. This is a start, but obviously it’s not what a typewriter effect looks like. Instead of hiding the mouse, and moving the DOM element around, this handles the actual pointer itself. So far, our text is revealed, but in a smooth way that doesn’t reveal the text letter by letter. animatedWeb Cursors.js is a simple JavaScript file that gives you control of the browser cursor, allowing fully animated cursors to use CSS cursor functionality.

Adding Steps to Achieve a Typewriter Effect
