Re: [csswg-drafts] [css-animations-2, css-transitions-2] Entry and exit animations for top-layer elements (#8189)

@flackr thanks!

Good thinking, grabbing the CSS transition with `getAnimations`. 💡
The code is clunky, but at least it works (any non-keyframe-based animations with native web animations is clunky, so nothing unusual there -- I'm hopeful the platform will make some progress on this front in the future).

Your proof of concept works, but for somewhat more "real" code I'd tweak it a bit:
Listening to `transitionstart` is a good idea but then you should just look for transitions that target `visibility` (which you know is the key piece here) rather than using `evt.propertyName`. In a real application, the dialog might well start other transitions for other states so that would not be reliable.

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


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

Received on Monday, 27 February 2023 21:40:58 UTC