Open
Description
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:
@media (vt-nav-type: back) {
/* … */
}
We should also look at ways to add that behaviour for SPAs:
document.startViewTransition({
isBackNavigation: true,
update: callback,
});
Or we could look at a tighter integration with the navigation API.