Created
October 14, 2016 09:49
-
-
Save hirejordansmith/6e0e14c19d195f92f6ef50b8b41cb8e9 to your computer and use it in GitHub Desktop.
CSS Animations
This file contains hidden or 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
@-moz-keyframes bounce { | |
0%, 20%, 50%, 80%, 100% { | |
-moz-transform: translateY(0); | |
transform: translateY(0); | |
} | |
40% { | |
-moz-transform: translateY(-30px); | |
transform: translateY(-30px); | |
} | |
60% { | |
-moz-transform: translateY(-15px); | |
transform: translateY(-15px); | |
} | |
} | |
@-webkit-keyframes bounce { | |
0%, 20%, 50%, 80%, 100% { | |
-webkit-transform: translateY(0); | |
transform: translateY(0); | |
} | |
40% { | |
-webkit-transform: translateY(-30px); | |
transform: translateY(-30px); | |
} | |
60% { | |
-webkit-transform: translateY(-15px); | |
transform: translateY(-15px); | |
} | |
} | |
@keyframes bounce { | |
0%, 20%, 50%, 80%, 100% { | |
-moz-transform: translateY(0); | |
-ms-transform: translateY(0); | |
-webkit-transform: translateY(0); | |
transform: translateY(0); | |
} | |
40% { | |
-moz-transform: translateY(-30px); | |
-ms-transform: translateY(-30px); | |
-webkit-transform: translateY(-30px); | |
transform: translateY(-30px); | |
} | |
60% { | |
-moz-transform: translateY(-15px); | |
-ms-transform: translateY(-15px); | |
-webkit-transform: translateY(-15px); | |
transform: translateY(-15px); | |
} | |
} | |
.bounce { | |
-moz-animation: bounce 2s infinite; | |
-webkit-animation: bounce 2s infinite; | |
animation: bounce 2s infinite; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment