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

> > Same with this below, which expands to `entry 100% normal`
> 
> Now that you mentioned it, and also looking back at what @flackr wrote above:
> 
> > When the end of the range is not specified it could be some form of infinity / auto value so that most of the time developers would only need to specify a start point
> 
> We don't have a way for ranges of view timelines to reference the full scroll timeline, and the default for end range is `normal`, so we don't currently have this "infinity" behavior.

The polyfill implements this by changing the "fill" behavior of the implicitly created animation. We could implement different behavior for scroll trigger as I do think a common case will be to want a single trigger point forever.

As for ways to represent this, `animation-iterations` supports an `infinite` value, we could support the same for animation-range. Alternately, we have talked about having a phase for the entire range of the scroller in other issues (https://github.com/w3c/csswg-drafts/issues/8672#issuecomment-1545980510 and https://github.com/w3c/csswg-drafts/issues/8578#issuecomment-1540705525) but I had a hard time getting consensus on this being the range when no range name was specified.

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8942#issuecomment-1722261722 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:11:32 UTC