Phaser API Documentation

  Version: 
duration: number

Description:

The duration of the current animation, in milliseconds.

This value is set when a new animation is loaded into this component and should be treated as read-only, as changing it once playback has started will not alter the animation. To change the duration, provide a new value in the PlayAnimationConfig object.

Type:
number
Default: 0
Since: 3.0.0