Created
September 11, 2013 22:50
-
-
Save harrypujols/6530861 to your computer and use it in GitHub Desktop.
Blinking 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
/* ========================================================================== | |
animation | |
========================================================================== */ | |
@keyframes blinking { | |
from { | |
background-color: black; | |
color: #76f013; | |
} | |
to { | |
background-color: #fef734; | |
color: black; | |
} | |
} | |
@-webkit-keyframes blinking { | |
from { | |
background-color: black; | |
color: #76f013; | |
} | |
to { | |
background-color: #fef734; | |
color: black; | |
} | |
} | |
/* ========================================================================== | |
the class | |
========================================================================== */ | |
.blink { | |
-webkit-animation: blinking 0.7s infinite; | |
-webkit-animation-timing-function: cubic-bezier(1, 0, 0, 1); | |
-moz-animation: blinking 0.7s infinite; | |
-moz-animation-timing-function: cubic-bezier(1, 0, 0, 1); | |
-ms-animation: blinking 0.7s linear infinite; | |
-o-animation: blinking 0.7s linear infinite; | |
animation: blinking 0.7s infinite; | |
animation-timing-function: cubic-bezier(1, 0, 0, 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment