Re: [csswg-drafts] [css-view-transitions-2] Conditionally choose participating elements when onscreen in both DOM states (#9354)

> Duplicate of https://github.com/w3c/csswg-drafts/issues/8282?

I'm not sure, would love your feedback on that. :)

1. This issue was for the use-case where you only want an element to animate if it will be onscreen on both sides. So we'll conceptually put the captured element's snapshot back into its parent if we don't find a matching view-transition-name onscreen in the new DOM. There's an implicit assumption that ignoring offscreen stuff is only needed for morph animations.
2. https://github.com/w3c/csswg-drafts/issues/8282 was more general, ignore an element unless its onscreen (or within some margin of the viewport). So you could use it for elements which do exit/entry animations as well.

I think these are 2 distinct use-cases?

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


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

Received on Thursday, 5 October 2023 21:10:45 UTC