A Pen by Karan Bhandari on CodePen.
-
-
Save karanbhandari/db57ab8065dcb6bf0c04 to your computer and use it in GitHub Desktop.
typing effect CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>hi folks, this is typing animation using CSS | |
<span>|</span></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
background: #000; | |
padding-top: 10px; | |
} | |
p{ | |
color: lime; | |
font-family: "Courier"; | |
font-size: 20px; | |
/* margin: 10px 0 0 10px;*/ | |
white-space: nowrap; | |
overflow: hidden; | |
width: 30em; | |
animation: type 1s steps(60, end); | |
} | |
span{ | |
animation: blink 1s infinite; | |
} | |
@keyframes type{ | |
from { width: 0; } | |
} | |
@keyframes blink{ | |
to{opacity: .0;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment