Last active
December 16, 2015 15:19
-
-
Save luckyshot/5455346 to your computer and use it in GitHub Desktop.
CSS3 Animation & Keyframes
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
@-webkit-keyframes imageBeat, | |
@-moz-keyframes imageBeat, | |
@-ms-keyframes imageBeat, | |
@-o-keyframes imageBeat, | |
@keyframes imageBeat { | |
0% { transform: scale(1); } | |
2% { transform: scale(1.02); } | |
5% { transform: scale(1); } | |
100% { transform: scale(1); } | |
} | |
.hero-red img { | |
-webkit-animation: imageBeat 3s ease infinite; | |
-moz-animation: imageBeat 3s ease infinite; | |
-ms-animation: imageBeat 3s ease infinite; | |
-o-animation: imageBeat 3s ease infinite; | |
animation: imageBeat 3s ease infinite; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation: https://developer.mozilla.org/en-US/docs/CSS/Tutorials/Using_CSS_animations
Bezier easing generator: http://matthewlein.com/ceaser/