- From: Chris Harrelson via GitHub <noreply@w3.org>
- Date: Fri, 27 Jun 2025 16:23:58 +0000
- To: public-css-archive@w3.org
> I'm very curious about what you had in mind there. I would also be interested in understanding how view transitions solve this same problem. I imagine the transition wrapper code changes something about how removal happens - and that allows for more style behavior before removal? An exit transition is about the same as a view transition like this: ``` document.startViewTransition(() => parent.removeChild(child)) ``` Where the style sheet is configured for `child` to have a `view-transition-name` and also specify the desired fade animation for `child`. So we could potentially define a new syntax for an "exit animation" that is syntactic sugar for the above. A browser implementation might be quite tricky or expensive though, since gathering a screenshot on every update to `child` is expensive, and a synchronous delay to gather a screenshot before removing the child might stall the UI. -- GitHub Notification of comment by chrishtr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9500#issuecomment-3013624620 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 27 June 2025 16:23:59 UTC