Created
May 30, 2014 22:24
-
-
Save geuis/5c8867fa72fa4275ae44 to your computer and use it in GitHub Desktop.
Blink
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
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