twaver.animate.AnimateBounds Class
边界动画对象
以动画效果渐变更改节点位置以及大小
Constructor
twaver.animate.AnimateBounds
(
twaver.animate.AnimateBounds
-
node -
newBounds -
[finishFunction]
Parameters:
-
nodetwaver.Node节点
-
newBoundsObject节点新的位置及大小,值为包含x、y、width和height属性的Object对象
-
[finishFunction]Function optional回调函数,动画结束后执行的动作,可选,默认值为null
Returns:
Item Index
Methods
Properties
Methods
twaver.animate.Animate.action
(
-
rate
动画每帧执行的动作,子类重载此方法实现自定义动画效果
Parameters:
-
rateNumber动画完成进度
twaver.animate.Animate.getClassName
()
String
获取此类的字符串类名
Returns:
String:
返回此类的字符串类名
twaver.animate.Animate.getCurrentDelay
()
Number
获取当前帧的延迟毫秒数,默认实现为每帧延迟毫秒数乘以当前帧索引,动画表现出由快到慢的渐变过程
Returns:
Number:
返回当前帧的延迟毫秒数
Properties
current
Number
当前帧索引
delay
Number
动画的每一帧之间等待时间,默认值为4毫秒
finishFunction
Function
回调函数:动画结束后执行的动作
shouldBeFinished
Boolean
下一个动画是否等待当前动画结束,默认值为false
step
Number
动画帧数,默认值为8
