Skip to content

Instantly share code, notes, and snippets.

@roachhd
Forked from LeaVerou/dabblet.css
Last active August 29, 2015 14:08
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 roachhd/1ee2a5ee0e73a3ed130a to your computer and use it in GitHub Desktop.
Save roachhd/1ee2a5ee0e73a3ed130a to your computer and use it in GitHub Desktop.
/**
* Blinking animations
*/
@keyframes blink-smooth { to { opacity: 0 } }
@keyframes blink { 50% { opacity: 0 } }
p {
animation: blink-smooth .3s 10 alternate;
background: yellow;
}
p + p {
animation: blink .5s 5 steps(1);
}
<p>Blinking smoothly
<p>Non-smooth blinking
// alert('Hello world!');
{"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