Re: [w3ctag/design-reviews] View Transition Classes (Issue #938)

> I don't understand that point, if a regular selector is invalid by the time the view transition starts, then wouldn't the selector that assigns the view transition class be invalid too?

No! That's how view transitions work. You capture the old state, change the DOM in whatever way you want (including removing elements), capture the new state, and then run the animation. There is no guarantee that the original state of the DOM (and thus the selectors) remains valid by the time you start the animation. The tether that connects everything is the CSS properties like `view-transition-name` and `view-transition-class` that are carried over to the view transitions.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/938#issuecomment-2284489303
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/938/2284489303@github.com>

Received on Monday, 12 August 2024 16:50:21 UTC