W3cubDocs

/Web APIs

ViewTransition: skipTransition() method

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The skipTransition() method of the ViewTransition interface skips the animation part of the view transition, but doesn't skip running the document.startViewTransition() callback that updates the DOM.

Syntax

js

skipTransition()

Parameters

None.

Return value

undefined.

Examples

js

// start new view transition
const transition = document.startViewTransition(() => displayNewImage());

// skip the animation and just update the DOM
transition.skipTransition();

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
skipTransition 111 111 No No 97 No 111 111 No No No 22.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/skipTransition