API Docs for:
Show:

Component_ZoomAnimation Class

Module: gs

Executes a zoom-animation on a game-object.

Item Index

Properties

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 Number

    The x-axis zoom-factor.

  • y Number

    The y-axis zoom-factor.

  • duration Number

    The duration in frames.

  • easingType Object

    The easing-type.

  • [callback] Function optional

    An optional callback called if blending is finished.

Properties

easing

gs.Easing

The easing-object used for the animation.