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.

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

view-transition-class formal syntax
FieldValue
Formal syntaxnone | <custom-ident>+
Initial valuenone
Applies toallElements
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS View Transitions
StatusStandard

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.

view-transition-class live example
CSS .reset-example { view-transition-class: initial; } .inherit-example { view-transition-class: inherit; } @supports (view-transition-class: initial) { .supported { view-transition-class: initial; } }

Description

The CSS view-transition-class property is a standard property in CSS View Transitions. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: view-transition-class
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies