Re: [csswg-drafts] [css-animations] or [css-selectors] Abiliity to invoke an animation on the "exit" of a state selector (#9062)

Yes, it's not possible in general.  The issue is that neither Transitions nor Animations recognizes the *concept* of state changes (entries or exits). Transitions is based purely on *property* changes (which'll often, but not entirely, map to a state change), while Animations run while an element is *in* a state. You can *fake* an entry animation by running the animation only once, but because it's just fakery you can't do the opposite and get an exit animation out of it. At a fundamental level, the model that T&A were defined to work on doesn't map to state changes.

So yeah we'd need to do something novel to actually solve this.

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


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

Received on Thursday, 13 July 2023 17:46:09 UTC