Re: [csswg-drafts] [css-transitions-2] Exit animations (`@exit-style`) (#9500)

> ([#](https://github.com/w3c/csswg-drafts/issues/9500#issuecomment-3838782457)) I believe `@ending-style` can solve these problems.

One thing it doesn’t cover is what needs to happen _after_ the element got removed from the DOM. Say you have a list of 4 cards and you remove the third one. Once/While the third one is/gets removed, the other items should – most likely – move towards each other, as seen in https://view-transitions.chrome.dev/cards/spa-auto/

![Image](https://github.com/user-attachments/assets/c1af08ce-3889-4863-91fb-b690ee487fc0)

With View Transitions you can orchestrate all this. With a simple `@ending-style` on the removed element you can’t. 

(Also see [this comment of mine](https://github.com/w3c/csswg-drafts/issues/9500#issuecomment-3018331331) that details this)



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


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

Received on Wednesday, 18 February 2026 10:06:02 UTC