Re: [csswg-drafts] [selectors-4] Add syntax to establish before-change style for css-transitions on new elements. (#8174)

@o-t-w If we're transitioning `display` via just CSS, we can use the styles in the “hidden” state as the exit transition: https://codepen.io/kizu/pen/wvYYmZY

https://github.com/w3c/csswg-drafts/assets/177485/af646155-16d0-457e-be25-59eee57920a8

If we would be using JS, I don't think CSS would help us a lot with the exit transition, but we could use a class with the exit styles and do “apply this class -> wait for the transition -> remove element”. Which is not ideal, and I wonder if there is something we could do for this (`@ending-style`? Something else?).

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


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

Received on Thursday, 18 May 2023 10:03:51 UTC