Re: [csswg-drafts] [selectors-4] Add pseudo-class to differentiate loading from dynamically added content (#8175)

I think it might also be helpful for transitions. I've used the `loaded` class on `body` approach to apply a starting style. The goal is for the element to have a transition when shown/hidden but not on its initial appearance.

e.g.

```
@starting-style { 
  body.loaded .my-class {
    opacity: 0;
  }
}
```

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


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

Received on Wednesday, 4 September 2024 12:15:41 UTC