Phaser API Documentation

  Version: 
duration: number

Description:

How long the animation should play for, in milliseconds. If the frameRate property has been set then it overrides this value, otherwise the frameRate is derived from duration.

Type:
number
Since: 3.0.0