Component_ZoomAnimation Class
Executes a zoom-animation on a game-object.
Methods
toDataBundle
()
Serializes the zoom-animation into a data-bundle.
update
()
Updates the zoom-animation.
zoomTo
(
-
x
-
y
-
duration
-
easingType
-
[callback]
Starts the zoom-animation.
Parameters:
-
x
NumberThe x-axis zoom-factor.
-
y
NumberThe y-axis zoom-factor.
-
duration
NumberThe duration in frames.
-
easingType
ObjectThe easing-type.
-
[callback]
Function optionalAn optional callback called if blending is finished.
Properties
easing
gs.Easing
The easing-object used for the animation.