view-transition-class
Newly availableSince 202590% of users
Allows you to apply names or 'classes' to specific view transitions. This makes it easier to target groups of elements with the same transition effects, rather than having to define them individually for every single element.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since October 2025. Widely available around April 2028.
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
.product-card {
/* Assigns a class name to this specific transition group */
view-transition-class: product-fade;
}
::view-transition-group(.product-fade) {
animation-duration: 0.5s;
}Values
noneview-transition-class browser support
BaselineNewly availableSince 2025 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage90%of people can use this10% use a browser without it.
Browsers
125+
144+
18.2+
125+Mobile
125+Android
144+Android
18.2+iOS