[csswg-drafts] Pull Request: [web-animations-2] Preserve animation progress when setting the timeline

kevers-google has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [web-animations-2] Preserve animation progress when setting the timeline ==
[web-animations-2] Preserve animation progress when setting the timeline

When switching to a non-monotonic timeline on a paused animation, we set the hold time to the previous current time to prevent the animation from visually jumping until the animation is unpaused.

Similarly, when transition from a non-monotonic timeline to a monotonic timeline, we preserved current time to ensure smooth continuity in the animation.

This process worked well, when dealing exclusively with time-based timeline, but is not compatible with progress-based timelines. We address this by preserving previous progress in places where we previously preserved current time.  The change is compatible with time-based animations as the measured progress (current time / end time) is consistent for a time or progress based animation.

Issue #6452 


See https://github.com/w3c/csswg-drafts/pull/6475


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 26 July 2021 20:11:07 UTC