Re: [csswg-drafts] [css-animations-2] Move scroll and event animation triggers to independent namespace (#12336)

> What if we actually had a `viewenter` and `viewleave` DOM events which map exactly to what `view()` does, but without the state? (And I must say I think I'd love to have those anyway).

A note of caution here: these proposed events might appear at first glance to be redundant with `IntersectionObserver`, but they are not. The biggest difference is that `IntersectionObserver` takes into account intermediate clipping (e.g. nested scrollers, `clip-ath`).

Having said that: *conceptually* I think `viewenter` and `viewleave` is a helpful way to think about timeline-based triggers, whether or not they are promoted to full-fledged DOM event.s

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


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

Received on Tuesday, 5 August 2025 19:47:27 UTC