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

> You'd have 2 IntersectionObservers: one for triggering on entry (`isIntersecting=true`) that flips the value to `true`, and a second one for triggering on exit (`isIntersecting=false`), with a range that _has_ to be larger than the first one's, that flips the value to `false`.

I think this is a separate use case here, where you can trigger-in on entry and trigger-out on exit. The initial use-case was to trigger-in and having an option to run the animation only once.

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


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

Received on Friday, 21 July 2023 23:00:22 UTC