CSS view transitions

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

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.

Reference

Properties

  • {{cssxref("view-transition-class")}}
  • {{cssxref("view-transition-name")}}
  • {{cssxref("view-transition-scope")}}

At-rules and descriptors

  • {{cssxref("@view-transition")}}
  • [navigation](/en-US/docs/Web/CSS/Reference/At-rules/@view-transition#navigation) descriptor

Selectors and pseudo-elements

  • {{cssxref(":active-view-transition")}}
  • {{cssxref(":active-view-transition-type()")}}
  • {{cssxref("::view-transition")}}
  • {{cssxref("::view-transition-image-pair()")}}
  • {{cssxref("::view-transition-group()")}}
  • {{cssxref("::view-transition-new()")}}
  • {{cssxref("::view-transition-old()")}}

Interfaces

  • {{domxref("CSSViewTransitionRule")}}
  • {{domxref("ViewTransition")}}
  • {{domxref("ViewTransition.skipTransition()")}} method
  • {{domxref("ViewTransition.updateCallbackDone")}}
  • {{domxref("ViewTransition.ready")}}
  • {{domxref("ViewTransition.finished")}}
  • {{domxref("ViewTransition.transitionRoot")}}
  • {{domxref("Document.startViewTransition()")}} method
  • {{domxref("Document.activeViewTransition")}}
  • {{domxref("Element.startViewTransition()")}} method
  • {{domxref("Element.activeViewTransition")}}

Guides

  • Using the View Transition API
  • : Explains how to create view transitions and customize transition animations, including manipulating active view transitions.
  • Using view transition types
  • : Shows how to use types along with same-document view transitions and cross-document view transitions.
  • Using element-scoped view transitions
  • : Covers how element-scoped view transitions work, and how to use them.

Related concepts

  • {{domxref("PageRevealEvent", "pagereveal")}} event
  • {{domxref("PageSwapEvent", "pageswap")}} event
  • {{domxref("Document.visibilityState")}}
  • CSS animations module
  • {{cssxref("animation")}}
  • {{cssxref("@keyframes")}}
  • {{domxref("CSSKeyframesRule")}}
  • {{domxref("CSSStyleRule")}}
  • Web animations API
  • CSS transforms module
  • {{cssxref("transform")}}
  • {{cssxref("transform-function")}}

Specifications

{{Specifications}}

See also