play(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
play(speed?: number, loop?: boolean): this;
Start playback of the timeline.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
speed | optional, number | Rate at which to play the timeline. A value of 1 means it will play at a t of 1 per ms. Use negative values to play the timeline in reverse. |
loop | optional, boolean | Whether to loop the timeline when it reaches the end (or the beginning if playing in reverse). If not specified here then the value set in ZapWorks Studio for this timeline will be used. |
Returns
Section titled “Returns”this