view-transition-classBaseline · Newly available
The view-transition-class CSS property sets a name that can be used to apply styles to multiple named view transition pseudo-elements.
Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Oct 14, 2025.
Browser support
DesktopChrome
1–124Not supported
125+Supportedsince May 14, 2024
Current: 155Edge
12–124Not supported
125+Supportedsince May 17, 2024
Current: 154Firefox
1–143Not supported
144+Supportedsince Oct 14, 2025
Current: 157Safari
1–18.1Not supported
18.2+Supportedsince Dec 11, 2024
Current: 27MobileChrome Android
18–124Not supported
125+Supportedsince May 14, 2024
Current: 155Firefox Android
4–143Not supported
144+Supportedsince Oct 14, 2025
Current: 157Safari iOS
1–18.1Not supported
18.2+Supportedsince Dec 11, 2024
Current: 27How to use
Every current browser supports this, but it only became Baseline on Oct 14, 2025. Use it as a progressive enhancement, or keep a fallback if you support older devices.
Example
Full syntax and examples are on MDN: view-transition-class.
Feature detection
CSS · check before using
@supports (view-transition-class: initial) {
/* styles that rely on view-transition-class */
}
/* or in JavaScript */
if (CSS.supports("view-transition-class", "initial")) {
// use it
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (2). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| view-transition-class | 125 | 125 | 144 | 18.2 | 125 | 144 | 18.2 |
| view-transition-class.none | 125 | 125 | 144 | 18.2 | 125 | 144 | 18.2 |