Check if the elapsedTime is correct for animationiteration events
Categories
(Core :: CSS Transitions and Animations, task)
Tracking
()
People
(Reporter: florian, Unassigned)
Details
Comment 1•3 years ago
|
||
Latest spec text is here: https://drafts.csswg.org/css-animations-2/#event-dispatch
You won't get a zero elapsedTime for the first iteration because the "current iteration" will be 1 at the point when the first iteration event is dispatched.
Test case here: https://codepen.io/birtles/pen/PoOaabJ
I think the confusion may have been around the "iterationStartTime" which is not the time of the current iteration but the time produced by the iteration start property which lets you start at a given iteration or part-way through one: https://drafts.csswg.org/web-animations-1/#iteration-start
Comment 2•3 years ago
|
||
This seems to be based on a misunderstanding of the value of current iteration at the point when the iteration events are dispatched. Closing as invalid but please let me know if I've misunderstood.
Description
•