- From: Yehonatan Daniv via GitHub <noreply@w3.org>
- Date: Tue, 16 Sep 2025 14:27:00 +0000
- To: public-css-archive@w3.org
> Very rough strawman proposal of what I was imagining at the end: > > ```css > event-trigger: --name enter-events [/ exit-events]? > ``` This looks fine. But then: > If no exit-events are specified, then the same enter event can trigger the enter effect every time it occurs. I guess it can also trigger the enter/exit effects in an alternating manner, right? Will that change based on the specified behavior? > 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. So this introduces a state into event triggers as well? Or is that based on the state of the animation? > ```css > timeline-trigger: --name entry-range [/ exit-range]? > ``` > If no exit range is specified it is the same as the entry range. This is also fine. Exiting the exit range is same as emitting the exit event in event triggers. > But the high level idea is still that all triggers potentially generate paired events and a common syntax for it. Yes, agreed. -- GitHub Notification of comment by ydaniv Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12652#issuecomment-3299027690 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 16 September 2025 14:27:00 UTC