Created
June 26, 2012 15:43
-
-
Save jonathansampson/2996529 to your computer and use it in GitHub Desktop.
Delayed Animations
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
/** | |
* Delayed Animations | |
*/ | |
@keyframes fadeToBlue { | |
50% { | |
background: blue | |
} | |
} | |
.foo { | |
float: left; | |
margin: 0 1px; | |
width: 100px; | |
height: 100px | |
} | |
.foo:nth-child(1) { | |
animation: fadeToBlue 1.5s 1.0s ease 1; | |
background: red | |
} | |
.foo:nth-child(2) { | |
animation: fadeToBlue 1.5s 1.2s ease 1; | |
background: green | |
} | |
.foo:nth-child(3) { | |
animation: fadeToBlue 1.5s 1.4s ease 1; | |
background: orange | |
} | |
.foo:nth-child(4) { | |
animation: fadeToBlue 1.5s 1.6s ease 1; | |
background: silver | |
} | |
.foo:nth-child(5) { | |
animation: fadeToBlue 1.5s 1.8s ease 1; | |
background: maroon | |
} | |
.foo:nth-child(6) { | |
animation: fadeToBlue 1.5s 2.0s ease 1; | |
background: olive | |
} |
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
<div class="foo"></div> | |
<div class="foo"></div> | |
<div class="foo"></div> | |
<div class="foo"></div> | |
<div class="foo"></div> | |
<div class="foo"></div> |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment