Re: [csswg-drafts] [css-view-transitions-2] CSS only way to transition between list <-> detail views (#8209)

We are running into the same for our list detail views. JavaScript has been our solution so far but it's not ideal. One thought I was pursuing was since it's generally a link or button triggering the transition, that I could use :has and :focus-within to add the view-transition-name to the item being opened. The other challenge with that though is the navigation back. I had to track which item was opened and ensure it was set, so that again required js. In a future world and spa a style container query and variable set before might help, but alas that's complex. Glad other solutions here are being explored..

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


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

Received on Thursday, 9 March 2023 15:24:54 UTC