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

Thanks @bramus!

> `repeat` is a bit weird as it doesn’t animate but jumps when not defining a `animation-exit-range` (or when that value is not `cover`). I think it’s better to use `alternate` here.

Yes, there's a discontinuity point with `repeat`, hence the addition of the `exit-range` (: 

> This feels weird, as if the property is overloaded.

I agree the `exit-range` makes it look a bit overwhelming, but it is required for solving `repeat`.
Otherwise, to make `repeat` look good and yet we'll probably need to figure out some magical keyword or rule that solves the discontinuity. OTOH it's very explicit and allows the user to specify exactly what they want without any magic, in the specific case when they need it.

-------

I also [asked for adding another type](https://github.com/w3c/csswg-drafts/issues/8942#issuecomment-1729953439) like `play-state` (name TBB) for toggling `animation-play-state`, mostly for toggling animations with `iteration-count: infinite`, would be great to have that as well.

-- 
GitHub Notification of comment by ydaniv
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8942#issuecomment-1853514857 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 09:01:35 UTC