Re: [csswg-drafts] [web-animations-2] Custom effects (#6861)

Another thing I thought of just now is that an Animation `progress` event allows you to swap out timelines without needing to adjust your code to reading the progress.

For Scroll-Driven Animations you need a scroll listener to queue `overallProgress` being read, for Time-Based Animations you need a timer to queue `overallProgress` being read, … which means when the timeline changes you’d also need to change the queueing mechanism.

With a `progress` event this is not needed, as your code keeps working, regardless of which timeline - or even which effect – is being used :)

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6861#issuecomment-2502039400 using your GitHub account


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

Received on Tuesday, 26 November 2024 22:13:23 UTC