Constructor

ScaleAnimation

Description

Create a ScaleAnimation.

Parameters

obj

Object

A widget created by user.

option

Object

The option include below properties
* x : (Number) indicates the multiples along x-axis of the scale transformation of widget after animation.
* y : (Number) indicates the multiples along y-axis of the scale transformation of widget after animation.
* z : (Number) indicates the multiples along z-axis of the scale transformation of widget after animation.
* ease : (String) describes the motion tween of the batch of animations, it could be set as one of the values below
- 'SineCubic.InOut'. 'Linear.None', if user don't set ease, this is default. 'Quadratic.In', 'Quadratic.Out', 'Quadratic.InOut', 'Cubic.In', 'Cubic.Out', 'Cubic.InOut', 'Quartic.In', 'Quartic.Out', 'Quartic.InOut', 'Quintic.In', 'Quintic.Out', 'Quintic.InOut', 'Sinusoidal.In', 'Sinusoidal.Out', 'Sinusoidal.InOut', 'Exponential.In', 'Exponential.Out', 'Exponential.InOut', 'Circular.In', 'Circular.Out', 'Circular.InOut', 'Elastic.In', 'Elastic.Out', 'Elastic.InOut', 'Back.In', 'Back.Out', 'Back.InOut', 'Bounce.In', 'Bounce.Out', 'Bounce.InOut'
* duration : (Number) describes how long the batch of animations to be performed in the meanwhile would last, the unit is millisecond(ms).
- [default : 1000]
* delay : (Number) describes the time duration of the batch of animations would defer starting, the unit is millisecond(ms)}

Methods

ScaleAnimation

Description

(Constructor)
Create a ScaleAnimation.

Parameters

■obj - Object - A widget created by user. ■option (Optional) - Object - The option include below properties * x : (Number) indicates the multiples along x-axis of the scale transformation of widget after animation. * y : (Number) indicates the multiples along y-axis of the scale transformation of widget after animation. * z : (Number) indicates the multiples along z-axis of the scale transformation of widget after animation. * ease : (String) describes the motion tween of the batch of animations, it could be set as one of the values below - 'SineCubic.InOut'. 'Linear.None', if user don't set ease, this is default. 'Quadratic.In', 'Quadratic.Out', 'Quadratic.InOut', 'Cubic.In', 'Cubic.Out', 'Cubic.InOut', 'Quartic.In', 'Quartic.Out', 'Quartic.InOut', 'Quintic.In', 'Quintic.Out', 'Quintic.InOut', 'Sinusoidal.In', 'Sinusoidal.Out', 'Sinusoidal.InOut', 'Exponential.In', 'Exponential.Out', 'Exponential.InOut', 'Circular.In', 'Circular.Out', 'Circular.InOut', 'Elastic.In', 'Elastic.Out', 'Elastic.InOut', 'Back.In', 'Back.Out', 'Back.InOut', 'Bounce.In', 'Bounce.Out', 'Bounce.InOut' * duration : (Number) describes how long the batch of animations to be performed in the meanwhile would last, the unit is millisecond(ms). - [default : 1000] * delay : (Number) describes the time duration of the batch of animations would defer starting, the unit is millisecond(ms)}

add

Description

Bind the options needed for scale animation with user's widget.

Parameters

■obj - Object - A widget created by user. ■option (Optional) - Object - The option include below properties -{ x {Number}: indicates the multiples along x-axis of the scale transformation of widget after animation. ,y {Number}: indicates the multiples along y-axis of the scale transformation of widget after animation. , z {Number}: indicates the multiples along z-axis of the scale transformation of widget after animation. , ease {String}: describes the motion tween of the batch of animations, it could be set as one of the values below('SineCubic.InOut'. 'Linear.None', if user don't set ease, this is default. 'Quadratic.In', 'Quadratic.Out', 'Quadratic.InOut', 'Cubic.In', 'Cubic.Out', 'Cubic.InOut', 'Quartic.In', 'Quartic.Out', 'Quartic.InOut', 'Quintic.In', 'Quintic.Out', 'Quintic.InOut', 'Sinusoidal.In', 'Sinusoidal.Out', 'Sinusoidal.InOut', 'Exponential.In', 'Exponential.Out', 'Exponential.InOut', 'Circular.In', 'Circular.Out', 'Circular.InOut', 'Elastic.In', 'Elastic.Out', 'Elastic.InOut', 'Back.In', 'Back.Out', 'Back.InOut', 'Bounce.In', 'Bounce.Out', 'Bounce.InOut') , duration {Number}: describes how long the batch of animations to be performed in the meanwhile would last, default is 1000, the unit is millisecond(ms). ,delay {Number}: describes the time duration of the batch of animations would defer starting, the unit is millisecond(ms)}