[csswg-drafts] Pull Request: [web-animations-1] [scroll-animations-1] Support automatic duration scroll animations #4862

frivoal has just labeled a pull request from flackr for https://github.com/w3c/csswg-drafts as "css-animations-1":

== [web-animations-1] [scroll-animations-1] Support automatic duration scroll animations #4862 ==
Change the implicit handling of auto duration animations to use the duration of the supplied timeline, giving ScrollTimeline an implicit duration of 100s corresponding to 100% of their progress.

I think this is about the minimum that could be done to support the use case in #4862 and also doesn't significantly complicate web animations. While I like the idea of supporting arbitrary percentages specified in the future, it's easy to see how the specified duration 'auto' implicitly maps to 100% of the duration.

The only change to existing behavior is that no supplied animation duration would result in an infinite duration (from the DocumentTimeline) rather than 0 duration as defined today.

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

Received on Tuesday, 14 July 2020 00:49:11 UTC