ViewTransition

The ViewTransition interface of the View Transition API represents an active view transition, and provides functionality to react to the transition reaching different states (e.g., ready to run the animation, or animation finished) or skip the transition altogether.

MDN Reference

Properties

Link copied to clipboard

The finished read-only property of the finished will only reject in the case of a same-document (SPA) transition, if the callback passed to Document.startViewTransition() throws or returns a promise that rejects.

Link copied to clipboard

The ready read-only property of the ready will reject if the transition cannot begin.

Link copied to clipboard
Link copied to clipboard

The updateCallbackDone read-only property of the updateCallbackDone is useful when you don't care about the success/failure of a same-document (SPA) view transition animation, and just want to know if and when the DOM is updated.

Functions

Link copied to clipboard

The skipTransition() method of the ``js-nolint skipTransition() `` None.