Created
August 9, 2015 01:18
-
-
Save joshuacharleslake/6f2832d2d1ef116c8fec to your computer and use it in GitHub Desktop.
Flash CSS Animation
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
<span class="flash">This Will Flash</span> | |
<style> | |
.flash { | |
-webkit-animation-name: flash; | |
-webkit-animation-duration: 1s; | |
-webkit-animation-timing-function: linear; | |
-webkit-animation-iteration-count: infinite; | |
-moz-animation-name: flash; | |
-moz-animation-duration: 1s; | |
-moz-animation-timing-function: linear; | |
-moz-animation-iteration-count: infinite; | |
animation-name: flash; | |
animation-duration: 1s; | |
animation-timing-function: linear; | |
animation-iteration-count: infinite; | |
} | |
@-moz-keyframes flash { | |
0% { opacity: 1.0; } | |
50% { opacity: 0.0; } | |
100% { opacity: 1.0; } | |
} | |
@-webkit-keyframes flash { | |
0% { opacity: 1.0; } | |
50% { opacity: 0.0; } | |
100% { opacity: 1.0; } | |
} | |
@keyframes flash { | |
0% { opacity: 1.0; } | |
50% { opacity: 0.0; } | |
100% { opacity: 1.0; } | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment