YUI3学习笔记 ( 6 )

[ anim类 ]

<1> anim类在引入的时候,有两种,一种是"anim",另一种是"anim-color",其中前面一种能使用几乎所有的运动,包括形变,位置变化和滚动。后面一种包括形变和颜色变化,但不能使用位置变化。

<2> anim类有实例级的方法,也有类级的静态方法,实例级的方法控制单个动画,类级静态方法可以控制所有实例。

<3> interations和interationCount。interaitons可以用来控制动画的次数,而interaionCount可以得到当前是第几次重复。

<4> 常用的监听事件有"start"——动画开始,“end”——动画结束,“pause”——暂停,“resume”——恢复(暂停后重新run),“interation”——迭代,“tween”——运动中。
posted on 2009-07-14 11:49  真阿当  阅读(98)  评论(0编辑  收藏  举报