Animation.progress #398
Labels
topic: animation
Spec relates to animation (including transitions)
topic: css
Spec relates to CSS (Cascading Style Sheets)
venue: W3C CSS WG
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).The text was updated successfully, but these errors were encountered: