CSS · Properties — CSS View Transitions

view-transition-class

The CSS view-transition-class property. Initial value: none. Not inherited.

Syntax
view-transition-class: none | <custom-ident>+

Example

Try it

Notes

Media: visual. Applies to: allElements. Computed value: asSpecified.

More in this group

view-transition-name view-transition-scope

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course