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