Re: [csswg-drafts] [css-view-transitions-2] Distinguish between old and new DOM in CSS (#9424)

Since this is quite easy with `types`, I think we should close this. OK with you @khushalsagar ?
```js
const transition = document.startViewTransition(
  { update: () => {
      transition.types.add("new");
      // update the DOM somehow ...
  }, types: ["old"]);
```

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


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

Received on Tuesday, 13 August 2024 10:18:49 UTC