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

Missing Types: ViewTransition #1892

Open
GrandSchtroumpf opened this issue Jan 29, 2025 · 0 comments
Open

Missing Types: ViewTransition #1892

GrandSchtroumpf opened this issue Jan 29, 2025 · 0 comments

Comments

@GrandSchtroumpf
Copy link

Missing types

startViewTransition now support an object as parameter { update: () => void | Promise<void>; types: string[] }
https://developer.chrome.com/docs/web-platform/view-transitions/same-document#view-transition-types

document.startViewTransition({
  update: updateDOM,
  types: ['spa-navigation'],
});

Also the ViewTransition object now includes a types key of type ViewTransitionTypeSet which implement the Set object.

Missing viewTransitionClass in CSSStyleDeclaration

The view-transition-class declaration should be included in the CSSStyleDeclaration
https://developer.chrome.com/docs/web-platform/view-transitions/same-document#view-transition-class

element.style.viewTransitionClass;

This feature is supported by Chome (125) and Safari (18).

Note: Both features are not available on MDN yet as for today (27 January 2024)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant