Created
October 23, 2012 18:28
-
-
Save xav76/3940579 to your computer and use it in GitHub Desktop.
A CodePen by Azik Samarkandiy. Typing animation using CSS - work on progress...
This file contains hidden or 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</p> | |
| <p>created with ♥ by | |
| <a href="https://twitter.com/@samarkandiy" title="Azik Samarkandiy">@samarkandiy</a> | |
| :)<span>|</span></p> |
This file contains hidden or 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
| /* Inspired by Lea Verou's http://lea.verou.me/more-css-secrets/*/ |
This file contains hidden or 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 4s steps(60, end); | |
| } | |
| p:nth-child(2){ | |
| animation: type2 8s steps(60, end); | |
| } | |
| p a{ | |
| color: lime; | |
| text-decoration: none; | |
| } | |
| span{ | |
| animation: blink 1s infinite; | |
| } | |
| @keyframes type{ | |
| from { width: 0; } | |
| } | |
| @keyframes type2{ | |
| 0%{width: 0;} | |
| 50%{width: 0;} | |
| 100%{ width: 100; } | |
| } | |
| @keyframes blink{ | |
| to{opacity: .0;} | |
| } | |
| ::selection{ | |
| background: black; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment