21
loading...
This website collects cookies to deliver better user experience
The typewriter animation is going to reveal our text element by changing its width from 0 to 100%, step by step, using the CSS steps() function.
A blink animation is going to animate the cursor that “types out” the text.
"overflow: hidden;"
to make sure the text content isn’t revealed until the typing effect has started.
"border-right: "0.15em solid #999"
, to create the typewriter cursor.
typing
element being typed out, letter by letter. We’ll use the @keyframes CSS animation rule:typing
class into steps in order for it to look like it’s being typed out. This is where the steps()
CSS function comes in:steps()
function. This is what we see now: