Skip to content

Instantly share code, notes, and snippets.

@xav76
Created October 23, 2012 18:28
Show Gist options
  • Select an option

  • Save xav76/3940579 to your computer and use it in GitHub Desktop.

Select an option

Save xav76/3940579 to your computer and use it in GitHub Desktop.
A CodePen by Azik Samarkandiy. Typing animation using CSS - work on progress...
<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>
/* Inspired by Lea Verou's http://lea.verou.me/more-css-secrets/*/
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