Last active
August 29, 2015 14:16
-
-
Save gunnarbittersmann/84d58943e6bde1125a8b to your computer and use it in GitHub Desktop.
1, 2, 3, Action!
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
| /** | |
| * 1, 2, 3, Action! | |
| */ | |
| @keyframes one | |
| { | |
| from { opacity: 0 } | |
| 19% { opacity: 0 } | |
| 21% { opacity: 1 } | |
| 39% { opacity: 1 } | |
| 41% { opacity: 0 } | |
| to { opacity: 0 } | |
| } | |
| @keyframes two | |
| { | |
| from { opacity: 0 } | |
| 39% { opacity: 0 } | |
| 41% { opacity: 1 } | |
| 59% { opacity: 1 } | |
| 61% { opacity: 0 } | |
| to { opacity: 0 } | |
| } | |
| @keyframes three | |
| { | |
| from { opacity: 0 } | |
| 59% { opacity: 0 } | |
| 61% { opacity: 1 } | |
| 79% { opacity: 1 } | |
| 81% { opacity: 0 } | |
| to { opacity: 0 } | |
| } | |
| @keyframes action | |
| { | |
| from { opacity: 0 } | |
| 79% { opacity: 0 } | |
| 81% { opacity: 1 } | |
| to { opacity: 1 } | |
| } | |
| div | |
| { | |
| position: absolute; | |
| left: 0; | |
| right: 0; | |
| top: 50%; | |
| margin-top: -0.5em; | |
| text-align: center; | |
| font: bold 10em/1 "Helvetica Neue", Helvetica, Arial, sans-serif; | |
| animation-duration: 5s; | |
| animation-timing-function: linear; | |
| animation-fill-mode: both; | |
| } | |
| #one { animation-name: one } | |
| #two { animation-name: two } | |
| #three { animation-name: three } | |
| #action { animation-name: action } |
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
| <div id="one">1</div> | |
| <div id="two">2</div> | |
| <div id="three">3</div> | |
| <div id="action">Action!</div> |
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
| // alert('Hello world!'); |
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
| {"view":"split","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