Re: [csswg-drafts] [css-animations-2] Add animation-trigger for triggering animations when an element is in a timeline's range (#8942)

Also worth noting without a way to refer to the entire scroll range (#9367) it's awkward to make triggers before a certain scroll position.

E.g. we've been assuming that a single named range does some internal magic to extend to the end of the scroll range, but if I want an animation that is triggered when you're scrolled less than contain 100%, I have to extend the range far enough to pass the start scroll, e.g.
```css
  animation-trigger: view() alternate entry calc(0% - 1000vh) contain 100%;
```

SImilarly, we may need a value to return to the author for the automatically extended end of the range, e.g.
```css
  animation-trigger: view() alternate contain 0%;
```

When inspecting the animation trigger it's end value is supposed to be the end of the scroll, not `cover 100%`.

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


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

Received on Wednesday, 13 December 2023 15:28:41 UTC