CSS view-transition-class Property Reference
The CSS view-transition-class property is a standard property in CSS View Transitions. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
view-transition-class overview
The CSS view-transition-class property is a standard property in CSS View Transitions. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | none | <custom-ident>+ |
| Initial value | none |
| Applies to | allElements |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | discrete |
| Media | visual |
| Specification group | CSS View Transitions |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set view-transition-class. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
view-transition-class: initial;
}
.inherit-example {
view-transition-class: inherit;
}
@supports (view-transition-class: initial) {
.supported {
view-transition-class: initial;
}
}