[csswg-drafts] [scroll-animations-1] Range for entire scroll range (#9367)

flackr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [scroll-animations-1] Range for entire scroll range ==
It has come up a few times (https://github.com/w3c/csswg-drafts/issues/8942#issuecomment-1722261722, https://github.com/w3c/csswg-drafts/issues/8672#issuecomment-1545980510, https://github.com/w3c/csswg-drafts/issues/8578#issuecomment-1540705525) that we don't have any way to specify the entire scroll range for view timelines.

We decided in other issues that because we want the default range for a view timeline to be the cover range we should have cover by the normal range. If we want to preserve this but still support the use cases for the entire scroll range we should add a new range name for view timelines to cover this. E.g. the `scroll` range could represent the full range. Then authors could do something like `animation-range: entry 0% scroll 1000px` to make an animation from when an element enters to when you're scrolled 1000px down.

My preference would be to have `animation-range` without a range name use this range, e.g. just `animation-range: entry 0% 1000px` or `animation-range: 200px 1000px` but I think @fantasai had concerns with having the default animation range be cover except if you specify an animation-range without a named range.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9367 using your GitHub account


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

Received on Saturday, 16 September 2023 16:43:03 UTC