在jQuery内部函数Animation中调用到了createTweens()来创建缓动动画组,创建完成后的结果为:

可以看到上面的缓动动画组有四个原子动画组成。每一个原子动画的信息都包含在里面了。
仔细查看createTweens函数,实际上就是遍历调用了tweeners [“*”]的数组中的函数(实际上就只有一个元素)。
function createTweens( animation, props ) {
jQuery.each( props, function( prop, value ) {
var collection = ( tweeners[ prop ] || [] ).concat( tweeners[ “*” ] ),
index = 0,
length = collection.length;
for ( ; index
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...