To solve this, I believe that a `progress` event on Animation would be useful.
With such a `progress` event, the code to stay in sync with an animation’s progress would look like this, regardless of what type of timeline you use:
```js
anim.addEventListener('progress', () => { storeProgress(anim.overallProgress); });
```
This looks pretty sweet, right?
Anywho, back to `Animation.overallProgress`: you can try it out today in Chrome Canary with the Experimental Web Platform Features flag enabled.
It is expected to ship in Chrome 133.