3 ms·
http://www.webkit.org/blog/138/css-animation/ http://www.webkit.org/blog/138/css-animation/ > We have another cool new CSS feature to talk about: animation spe
by masklinn 16y ago
http://www.webkit.org/blog/138/css-animation/ http://www.webkit.org/blog/138/css-animation/
> We have another cool new CSS feature to talk about: animation specified in CSS. There is a lot of ground to cover here, so we’ll start with the basics first.
There are two technologies here, though both sometimes use the word "animation" they're separate: they implemented transitions in 2007 (using transition-* properties [0]), transitions are used to smoothly go from one state to an other and they are implicit: you only say which CSS property will transition and over which duration and the browser will handle all the decisions within that scope.
CSS animations[1] were added in 2009[2]. They are related to transitions but they're explicit and keyframe-based. Much more complex, but much more flexible as well (for instance you can have back and forth movements with animations, but not with transitions).
[0] http://dev.w3.org/csswg/css3-transitions/ http://dev.w3.org/csswg/css3-transitions/
[1] http://dev.w3.org/csswg/css3-animations/ http://dev.w3.org/csswg/css3-animations/
[2] http://www.webkit.org/blog/324/css-animation-2/ http://www.webkit.org/blog/324/css-animation-2/
- kenjackson 16y agoThanks.