view-transition-scope
Limited availability67% of usersExperimental
Keeps the view-transition-name values on an element and inside it private to that element. With all, a view transition started on the document or on an ancestor won't pick them up. A transition started on the element itself, with element.startViewTransition(), still sees them. The default, none, changes nothing. It works in Chrome and Edge 147 and later so far.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- all elements
- Animation type
- discrete
Quick example
.tabs {
view-transition-scope: all;
}
.tabs .indicator {
view-transition-name: tab-indicator;
}Values
noneallview-transition-scope browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage67%of people can use this33% use a browser without it.
Browsers
147+
147+Mobile
147+Android