Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The CSSViewTransitionRule interface represents a CSS @view-transition at-rule.
CSSRule CSSViewTransitionRuleInherits properties from its ancestor, CSSRule.
navigation Read onlyReturns the @view-transition at-rule's navigation descriptor value.
types Read onlyReturns an array containing the @view-transition at-rule's types descriptor values.
Inherits methods from its ancestor, CSSRule.
A stylesheet includes a @view-transition at-rule, with navigation and types descriptors set:
In script, we grab a reference to the @view-transition at-rule using document.styleSheets[0].cssRules, then log the corresponding CSSViewTransitionRule object and its navigation and types properties to the console. The types property returns an array containing the values set for the types descriptor.
| CSS View Transitions Module Level 2 # cssviewtransitionrule |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Dec 9, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.