Skip to content

[css-view-transitions-2] MPA: 'back' transitions #8685

Open
@jakearchibald

Description

@jakearchibald

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions