Skip to content

Instantly share code, notes, and snippets.

@davidsharp
Last active October 22, 2021 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsharp/a2cc3c8988dbfb8e5d291d1d084396cf to your computer and use it in GitHub Desktop.
Save davidsharp/a2cc3c8988dbfb8e5d291d1d084396cf to your computer and use it in GitHub Desktop.
Lousy alternating jumping styles (good for jumping pumpkins πŸŽƒ)
.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