finished property

JSPromise<JSAny?> get finished

The finished read-only property of the ViewTransition interface is a Promise that fulfills once the transition animation is finished, and the new page view is visible and interactive to the user.

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. This would indicate that the new state of the page wasn't created.

If a transition animation fails to start or is skipped during the transition using ViewTransition.skipTransition, the end state is still reached therefore finished will still fulfill.

Implementation

external JSPromise<JSAny?> get finished;