I've always been annoyed that, with the Web Animations API, there's no built-in way to know when an infinitely looping animation is finishing/starting an iteration. Turns out it's pretty easy to fake it using the `finished` promise that you get when you play an animation. https://codepen.io/andystewartdesign/pen/PwYMwrO?editors=0011

Comments