play( )


Plays a timeline forwards.

Plays a timeline that is not at its end in the forward direction and sets the hidden property of the animated elements to false.

Method Declaration
Copy
function play(): TimeLine;
Request
This method does not take any parameters
Returns
Return Type:TimeLine
JavaScript
import wixAnimationsFrontend from "wix-animations-frontend"; let timeline = wixAnimationsFrontend.timeline(); // ... timeline.play();
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?