standards-positions icon indicating copy to clipboard operation
standards-positions copied to clipboard

Animation.progress

Open DavMila opened this issue 1 year ago • 0 comments

WebKittens

No response

Title of the proposal

Animation progress accessor

URL to the spec

https://drafts.csswg.org/web-animations-2/#the-progress-of-an-animation

URL to the spec's repository

https://github.com/w3c/csswg-drafts/tree/main/web-animations-2

Issue Tracker URL

No response

Explainer URL

https://github.com/DavMila/explainer-animation.progress

TAG Design Review URL

TAG Review Requested

Mozilla standards-positions issue URL

Mozilla standards position request

WebKit Bugzilla URL

No response

Radar URL

No response

Description

This feature adds a "progress" property to the JavaScript class Animation.

The goal of this property is provide authors a convenient and consistent representation of how far along an animation has advanced across its iterations, regardless of the nature of its timeline. Without animation.progress, a developer would need to manually compute how far an animation has advanced factoring in the number of iterations of the animation and whether the currentTime of the animation is a percentage of total time (as in the case of scroll-driven animations) or an absolute time quantity (as in the case of time-driven animations).

DavMila avatar Sep 17 '24 17:09 DavMila