
Browser
JavaScript element.animate(): The Web Animations API
How element.animate() runs keyframe animations from JavaScript: timing options, the finished promise, pause and reverse, commitStyles() and reduced motion.
7 min read
Tag
2 posts

How element.animate() runs keyframe animations from JavaScript: timing options, the finished promise, pause and reverse, commitStyles() and reduced motion.

When the JavaScript transitionend event fires, why it fires once per property and bubbles, how to avoid missed events, and when to use animation promises.