Last active
October 22, 2021 08:17
-
-
Save davidsharp/a2cc3c8988dbfb8e5d291d1d084396cf to your computer and use it in GitHub Desktop.
Lousy alternating jumping styles (good for jumping pumpkins π)
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
.jump { | |
display: inline-block; | |
animation-duration: 1.5s; | |
animation-name: jump; | |
animation-iteration-count: infinite; | |
} | |
.jump.alt { | |
animation-delay: .75s; | |
} | |
@keyframes jump { | |
0%, 100% { | |
transform: scale(1.1,1) translateY(0); | |
} | |
5% { | |
transform: scale(1,1) translateY(-.4em); | |
} | |
15% { | |
transform: scale(1.1,.9) translateY(-.5em); | |
} | |
25% { | |
transform: scale(1,1) translateY(-.4em); | |
} | |
30% { | |
transform: scale(1,1) translateY(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment