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

@bramus, @flackr, would appreciate your thoughts on what's suggested so far.  Perhaps we can wrap up something that can be presented on the agenda for TPAC?

### Currently what we have is the following:

Syntax:
```
animation-trigger: <animation-trigger-timeline
    <normal | <length-percentage> | <timeline-range-name> <length-percentage>>?
    <once | repeat | alternate>>#
```

With `once` and `alternate` being more easy to define.
While `repeat` is a bit more tricky since it has a discontinuity point.

-----

It would be nice if we could squeeze in a solution for `repeat`, current suggestion is to have a syntax with optionally 2 ranges/timelines: first for when switching from false to true, and a second one, that replaces the first once the value is true, for when switching from true back to false, in order to solve the discontinuity issue.
Also, perhaps the could be a restriction on the second range/timeline to make it `>=` then the first one.


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


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

Received on Tuesday, 12 September 2023 16:56:01 UTC