CSS view transitions
The CSS view transitions module defines the behavior of the View Transition API, which allows developers to create animated transitions between different states within a document and across documents. This module also defines the CSS properties and pseudo-elements for styling these transitions.
The **CSS view transitions** module defines the behavior of the [View Transition API](/docs/Web/API/View_Transition_API), which allows developers to create animated transitions between different states within a document and across documents. This module also defines the CSS properties and pseudo-elements for styling these transitions.
## Reference
### Properties
- view-transition-class
- view-transition-name
- view-transition-scope
### At-rules and descriptors
- @view-transition
- [`navigation`](/docs/Web/CSS/Reference/At-rules/@view-transition#navigation) descriptor
### Selectors and pseudo-elements
- :active-view-transition
- :active-view-transition-type()
- ::view-transition
- ::view-transition-image-pair()
- ::view-transition-group()
- ::view-transition-new()
- ::view-transition-old()
### Interfaces
- CSSViewTransitionRule
- ViewTransition
- ViewTransition.skipTransition() method
- ViewTransition.updateCallbackDone
- ViewTransition.ready
- ViewTransition.finished
- ViewTransition.transitionRoot
- Document.startViewTransition() method
- Document.activeViewTransition
- Element.startViewTransition() method
- Element.activeViewTransition
## Guides
- [Using the View Transition API](/docs/Web/API/View_Transition_API/Using)
- : Explains how to create view transitions and customize transition animations, including manipulating active view transitions.
- [Using view transition types](/docs/Web/API/View_Transition_API/Using_types)
- : Shows how to use types along with same-document view transitions and cross-document view transitions.
- [Using element-scoped view transitions](/docs/Web/API/View_Transition_API/Using_element-scoped)
- : Covers how element-scoped view transitions work, and how to use them.
## Related concepts
- pagereveal event
- pageswap event
- Document.visibilityState
- [CSS animations](/docs/Web/CSS/Guides/Animations) module
- animation
- @keyframes
- CSSKeyframesRule
- CSSStyleRule
- [Web animations API](/docs/Web/API/Web_Animations_API)
- [CSS transforms](/docs/Web/CSS/Guides/Transforms) module
- transform
- transform-function
## Specifications
## See also
- [Pseudo-elements](/docs/Web/CSS/Reference/Selectors/Pseudo-elements)
- [Functional pseudo-classes](/docs/Web/CSS/Reference/Selectors/Pseudo-classes#functional_pseudo-classes)
- [Learn: Pseudo-classes and pseudo-elements](/docs/Learn_web_development/Core/Styling_basics/Pseudo_classes_and_elements)
Cite this
"CSS view transitions". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/View_transitions JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy