[csswg-drafts] [css-view-transitions-2] MPA: 'back' transitions (#8685)

jakearchibald has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-2] MPA: 'back' transitions ==
Transitions tend to happen in the opposite direction on 'back' navigations.

With SPA, we recommend looking at state in the navigation API, and setting a class name on the root.

For MPA, it feels like we should have something higher-level:

```css
@media (vt-nav-type: back) {
  /* … */
}
```

We should also look at ways to add that behaviour for SPAs:

```js
document.startViewTransition({
  isBackNavigation: true,
  update: callback,
});
```

Or we could look at a tighter integration with the navigation API.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8685 using your GitHub account


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

Received on Tuesday, 4 April 2023 13:57:59 UTC