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

> Ok, I got it now. I'm still unsure of how we're solving the back navigation. Say the user goes from list page to details page for a list item. Now they can either go back (by clicking the back button in the browser) or go to the home page (by clicking a link on the details page). You only want to tag the hero image on the details page if the user is going back to the list page. Going back to home page doesn't need the hero image to do an independent animation.
> 
> How would the author set this up?

First of all, this is a somewhat different use case, it's not related exactly to list<->details. 
But anyway:

```css
body:has(link.details:next) #maxiposter {
  view-transition: poster;
}
```

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


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

Received on Monday, 5 June 2023 18:46:15 UTC