Skip to content

Instantly share code, notes, and snippets.

@louisremi
Created May 3, 2011 16:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save louisremi/953689 to your computer and use it in GitHub Desktop.
Save louisremi/953689 to your computer and use it in GitHub Desktop.
CSS3 animations keyframes
/* We are defining the "timeline" of the animation,
* each line representing a keyframe.
*/
@-moz-keyframes bounce {
/* Translate the element 400px to the right */
/* Here we are animating "-moz-tranform",
* but most CSS properties can be animated:
* width, color, font-size, box-shadow, ...
*/
from { -moz-transform: translate(0px); }
60% { -moz-transform: translate(400px); }
/* and then bounce twice */
73% { -moz-transform: translate(360px); }
86% { -moz-transform: translate(400px); }
93% { -moz-transform: translate(380px); }
to { -moz-transform: translate(400px); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment