Re: [csswg-drafts] [web-animations-2][css-animations-2] animation-trigger CSS syntax (#12652)

Very rough strawman proposal of what I was imagining at the end:

```css
event-trigger: --name enter-events [/ exit-events]?
```

If no exit-events are specified, then the same enter event can trigger the enter effect every time it occurs. If an exit event list is specified then like timeline-triggers it will "exit" when the exit event happens and only then can trigger again.

```css
timeline-trigger: --name entry-range [/ exit-range]?
```

If no exit range is specified it is the same as the entry range.

```css
animation-trigger: --trigger-name enter-action [exit-action]?;
```

Specifies what the animation should do when the corresponding trigger enters and exits. For event triggers without a specified exit event we could either immediately trigger the exit action (if specified) for consistency or just skip it.

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


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

Received on Wednesday, 10 September 2025 17:06:18 UTC