Skip to content

Instantly share code, notes, and snippets.

@tbeseda
Created February 8, 2012 00:12
Show Gist options
  • Save tbeseda/1763287 to your computer and use it in GitHub Desktop.
Save tbeseda/1763287 to your computer and use it in GitHub Desktop.
slowly wobble an element with CSS -- shamelessly ripped from love.travis-ci
/* just webkit, 'cause yeah... */
@-webkit-keyframes wobble {
0% { -webkit-transform: rotate(0deg); }
20% { -webkit-transform: rotate(2deg); }
50% { -webkit-transform: rotate(-2deg); }
100% { -webkit-transform: rotate(0deg); }
}
.wobble { -webkit-animation: wobble 5s infinite; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment