Created
May 3, 2011 16:42
-
-
Save louisremi/953689 to your computer and use it in GitHub Desktop.
CSS3 animations keyframes
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
/* 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