Skip to content

Instantly share code, notes, and snippets.

@luckyshot
Last active December 16, 2015 15:19
Show Gist options
  • Save luckyshot/5455346 to your computer and use it in GitHub Desktop.
Save luckyshot/5455346 to your computer and use it in GitHub Desktop.
CSS3 Animation & Keyframes
@-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;
}
@luckyshot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment