Replays a timeline.
Replaying restarts the play of a paused or playing timeline from the
beginning of the timeline and sets the hidden
property of the animated elements to false
.
Note that when a timeline is created it is paused by default at the beginning of the timeline.
function replay(): TimeLine;
import wixAnimationsFrontend from "wix-animations-frontend";
let timeline = wixAnimationsFrontend.timeline();
// ...
timeline.replay();
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.