API Docs for:
Show:

PlayAnimationPrimitiveAnimationDescriptor Class

Plays an animation from database on the control. The control's image needs to be the same resource used for the animation in database.

Item Index

Properties

animationId

Number

The ID of the animation in database to use.

duration

Number

The duration of the change in frames.

easing

String

The easing-type to use. Has no effect on "sound", "wait" and "playAnimation". Possible types are:

  • linear_in/linear_out/linear_inout - Linear movement without any smoothing
  • quad_in/quad_out/quad_inout - Quadratic Easing
  • quart_in/quart_out/quart_inout - Quartic Easing
  • sine_in/sine_out/sine_inout - Sinusoidal Easing
  • cubic_in/cubic_out/cubic_inout - Cubic Easing
  • expo_in/expo_out/expo_inout - Exponential Easing
  • circ_in/circ_out/circ_inout - Circual Easing

Default: "linear_inout"

repeat

Boolean

Indicates if the animation should be played again with the next run of the animation-flow.

Default: true

type

String

Defines the kind of animation to execute. Supported types are:

  • changeTo
  • moveTo
  • blendTo
  • zoomTo
  • maskTo
  • shake
  • playAnimation
  • changeImages
  • sound
  • wait

Check the different primitive animation descriptors to get more information.

wait

Boolean

Indicates if the animation-flow wait for the animation to finish before playing the next. If set to false multiple animation can be played in parallel.

Default: false