coderef

Active view transitionBaseline · Newly available

The :active-view-transition CSS pseudo-class matches the root element when a view transition is active. The :active-view-transition-type() CSS pseudo-class matches only when the active view transition was started with the specified type.

Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Jan 13, 2026.

Browser support

DesktopChrome
1–124Not supported
125+Supportedsince May 14, 2024
Current: 155
Edge
12–124Not supported
125+Supportedsince May 17, 2024
Current: 154
Firefox
1–146Not supported
147+Supportedsince Jan 13, 2026
Current: 157
Safari
1–18.1Not supported
18.2+Supportedsince Dec 11, 2024
Current: 27
MobileChrome Android
18–124Not supported
125+Supportedsince May 14, 2024
Current: 155
Firefox Android
4–146Not supported
147+Supportedsince Jan 13, 2026
Current: 157
Safari iOS
1–18.1Not supported
18.2+Supportedsince Dec 11, 2024
Current: 27

How to use

Every current browser supports this, but it only became Baseline on Jan 13, 2026. Use it as a progressive enhancement, or keep a fallback if you support older devices.

Example

Full syntax and examples are on MDN: types.

Feature detection

CSS · check before using
@supports selector(:active-view-transition) {
  /* styles that use :active-view-transition */
}

/* or in JavaScript */
if (CSS.supports("selector(:active-view-transition)")) {
  // use it
}

Sub-features

Support for each part of the feature (14). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
ViewTransition.types12512514718.212514718.2
ViewTransitionTypeSet12512514718.212514718.2
ViewTransitionTypeSet.@@iterator12512514718.212514718.2
ViewTransitionTypeSet.add12512514718.212514718.2
ViewTransitionTypeSet.clear12512514718.212514718.2
ViewTransitionTypeSet.delete12512514718.212514718.2
ViewTransitionTypeSet.entries12512514718.212514718.2
ViewTransitionTypeSet.forEach12512514718.212514718.2
ViewTransitionTypeSet.has12512514718.212514718.2
ViewTransitionTypeSet.keys12512514718.212514718.2
ViewTransitionTypeSet.size12512514718.212514718.2
ViewTransitionTypeSet.values12512514718.212514718.2
active-view-transition1251251441812514418
active-view-transition-type12512514718.212514718.2