Re: [csswg-drafts] [css-animation][css-selectors] Addition of :removed pseudo-class and :finished functional pseudo-class (#7272)

CSS selectors match elements in the current DOM. If an element has been removed from the tree, then the pseudo-class won't match.

Instead of removing it, I guess you could add a `removing` class and then use

```css
.thing.removing {
    animation: fadeOut .2s ease-in-out;
}
```

and when the animation finishes you can remove it for real.

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


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

Received on Thursday, 12 May 2022 16:01:53 UTC