Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@geuis
Created May 30, 2014 22:24
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 geuis/5c8867fa72fa4275ae44 to your computer and use it in GitHub Desktop.
Save geuis/5c8867fa72fa4275ae44 to your computer and use it in GitHub Desktop.
Blink
CSS:
@-webkit-keyframes blink {
90% { opacity: 1; }
100% { opacity: 0; }
}
@-moz-keyframes blink {
90% { opacity: 1; }
100% { opacity: 0; }
}
@-o-keyframes blink {
90% { opacity: 1; }
100% { opacity: 0; }
}
@keyframes blink {
90% { opacity: 1; }
100% { opacity: 0; }
}
b-link {
-webkit-animation: blink 1s infinite;
animation: blink 1s infinite;
}
JS:
var blink = document.registerElement('b-link');
HTML:
<b-link> Hello world </b-link>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment