startViewTransition method

ViewTransition startViewTransition([
  1. JSObject callbackOptions
])

The startViewTransition() method of the Document interface starts a new same-document (SPA) view transition and returns a ViewTransition object to represent it.

When startViewTransition() is invoked, a sequence of steps is followed as explained in The view transition process.

Implementation

external ViewTransition startViewTransition([JSObject callbackOptions]);