Skip to content

Instantly share code, notes, and snippets.

@joshuacharleslake
Created August 9, 2015 01:18
Show Gist options
  • Save joshuacharleslake/6f2832d2d1ef116c8fec to your computer and use it in GitHub Desktop.
Save joshuacharleslake/6f2832d2d1ef116c8fec to your computer and use it in GitHub Desktop.
Flash CSS Animation
<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