You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This object can describe what to be change (target, property), how long it will last (duration), how does the chnage looks like (easing), and the start and end value (from, to and unit).
An animation object group list of tweens and play the real animation by add it self to the engine and step the tween.
Now we have engine, tween and Animtaion. Use those object or class you can build some style animatons you what to. But it's not enough, we need construct the tweens ourself and we only support css style property animation.
There are some realy awesome animation libraries exist:
anime.js: This is what inspire our little animation engine with more features like transform, svg and object property (we can do it by add a type field to our tween and add the corresponding changes code to Animation.step function), timeline, can automaticlly transform params to tweens etc.
velocityjs: It's incredibly fast, and it features color animation, transforms, loops, easings, SVG support, and scrolling.
Others
Unit transfrom
jquery.adjustCSS: calculate the scale between current unit and the excepted unit, then apply the new united value.
The engine
We need a mechanism to deal with layout thrashing. So we have an engine that group all animations into to a
requestAnimationFrame
callback.The tween and animation
A tween object repersent a property change. It is an object like this:
This object can describe what to be change (
target
,property
), how long it will last (duration
), how does the chnage looks like (easing
), and the start and end value (from
,to
andunit
).An animation object group list of tweens and play the real animation by add it self to the engine and step the tween.
The Libraries
Now we have
engine
,tween
andAnimtaion
. Use those object or class you can build some style animatons you what to. But it's not enough, we need construct thetweens
ourself and we only support css style property animation.There are some realy awesome animation libraries exist:
engine
with more features liketransform, svg and object property
(we can do it by add atype
field to ourtween
and add the corresponding changes code toAnimation.step
function),timeline
,can automaticlly transform params to tweens
etc.Others
Unit transfrom
The text was updated successfully, but these errors were encountered: