- From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
- Date: Tue, 31 Oct 2023 11:43:37 +0000
- To: public-css-archive@w3.org
noamr has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-view-transitions-2] Allow changing `types` using JS after (MPA) transition started? == Currently we're only allowing to set the transition types at `startViewTransition`, and they can get changed when revealing the new document in a cross-document view transition. But perhaps we can allow the author to read or change the types programmatically, as a `DOMTokenList` on the VT object? Something like this: ```js document.addEventListener("pagereveal", event => { const {viewTransition} = event; const hasSlideIn = viewTransition.typeList.has("slide-in"); if (heroImage.loaded) { viewTransition.typeList.toggle("expand-hero", true); } }); ``` Note that this is possible to do today using the CSSOM, but not dynamically while the VT is already running. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9542 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 31 October 2023 11:43:39 UTC