Resumes or pauses all animations on the given element.
It works with CSS or Web Animations.
IMPORTANT: When constructed, it resets and pauses the animations as a form of initialization.
To use with auto-widgets (HTML API) as part of a trigger specification:
<button id="btn">Play/pause</button><div data-lisn-on-click="@animate-play +target=#btn"></div> Copy
<button id="btn">Play/pause</button><div data-lisn-on-click="@animate-play +target=#btn"></div>
Static
Readonly
Resumes the animations without resetting them.
Resumes the animations if paused, otherwise pauses them.
Pauses the animations without resetting them.
Resumes or pauses all animations on the given element.
It works with CSS or Web Animations.
IMPORTANT: When constructed, it resets and pauses the animations as a form of initialization.
To use with auto-widgets (HTML API) as part of a trigger specification:
Example