Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-view-transitions-2] Declarative view transitions for same-document navigations. #8300

Open
khushalsagar opened this issue Jan 10, 2023 · 1 comment
Labels
css-view-transitions-2 View Transitions; New feature requests

Comments

@khushalsagar
Copy link
Member

Cross-document same-origin transitions build on the idea of View transitions being implicitly triggered by a navigation. While it's obvious that this should be done for cross-document navigations, authors could use the declarative transition for same-document navigations involving a hash change as well.

This can be made configurable with the declarative opt-in we decide in #8048.

@khushalsagar khushalsagar added the css-view-transitions-2 View Transitions; New feature requests label Jan 10, 2023
@jakearchibald
Copy link
Contributor

If we do this, it should be an opt-in on top of the general opt-in we decide in #8048.

If the change is scroll position, then scroll-behavior: smooth already provides an animated transition that communicates the change, and we shouldn't hijack that unless it's really what the developer wants.

Changes that aren't scroll-related, but still don't depend on JS, are much rarer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-view-transitions-2 View Transitions; New feature requests
Projects
None yet
Development

No branches or pull requests

2 participants