Skip to content

Instantly share code, notes, and snippets.

@metaphox
Created March 17, 2015 10:45
Show Gist options
  • Select an option

  • Save metaphox/3007f610e8e0f3253fdc to your computer and use it in GitHub Desktop.

Select an option

Save metaphox/3007f610e8e0f3253fdc to your computer and use it in GitHub Desktop.
shake it babe
@keyframes shake {
0% {transform: translateX(0);}
12.5% {transform: translateX(-6px) rotateY(-5deg)}
37.5% {transform: translateX(5px) rotateY(4deg)}
62.5% {transform: translateX(-3px) rotateY(-2deg)}
87.5% {transform: translateX(2px) rotateY(1deg)}
100% {transform: translateX(0)}
}
.shake {
animation: shake 400ms ease-in-out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment