Skip to content

Instantly share code, notes, and snippets.

@LoonyPandora
Created January 19, 2013 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LoonyPandora/4572096 to your computer and use it in GitHub Desktop.
Save LoonyPandora/4572096 to your computer and use it in GitHub Desktop.
CSS3 Animation Test
/**
* CSS3 Animation Test
*/
body {
padding: 20px;
}
* {
background-color: #111;
font: bold 40px Helvetica;
text-rendering: optimizeLegibility;
}
.animated span {
-webkit-animation-iteration-count: infinite;
-webkit-animation-duration: 4s;
-webkit-animation-timing-function: ease-in-out;
}
.second1 {
-webkit-animation-delay: 0s;
-webkit-animation-name: highlight;
}
.second2 {
-webkit-animation-delay: 1s;
-webkit-animation-name: highlight;
}
.second3 {
-webkit-animation-delay: 2s;
-webkit-animation-name: highlight;
}
.second4 {
-webkit-animation-delay: 3s;
-webkit-animation-name: highlight;
}
@-webkit-keyframes highlight {
0%, 100% { color: #f33; }
10%, 50%, 90% { color: #666; }
}
<div class="animated">
<span class="second1">One</span>
<span class="second2">Two</span>
<span class="second3">Three</span>
<span class="second4">Four</span>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment