Element.activeViewTransition is a read-only property that returns the ViewTransition currently active on that element, or null if none (MDN). Use it to access an element-scoped transition later without saving the return value of startViewTransition().
Read the notes below before you get or set this property. Prefer feature detection when support is limited.
Syntax
Use el.activeViewTransition. Start with this line.
JavaScript
element.activeViewTransition
Call
What it does
element.activeViewTransition
Primary signature.
Built into the browser. Read or assign el.activeViewTransition — no import required.
Library declarations
JavaScript
element.activeViewTransition
Parameters
Parameter
Description
Writable?
Optional. Read-only (MDN)
Return Value
Return Value
Description
*
The current value of el.activeViewTransition.
JavaScript Examples
Example 1 — Feature Detect
Check the property and method before using them.
JavaScript
const el = document.querySelector(".my-element");
const hasProp = "activeViewTransition" in el;
const hasMethod = typeof el.startViewTransition === "function";
console.log(hasProp, hasMethod);
// e.g. true true — or false false
Always null-check before calling methods on the value.
Compatibility
Browser Support
Element.activeViewTransition is Experimental with Limited availability on MDN (not Baseline). Feature-detect and treat null / missing support as the normal fallback path.
✓ Experimental · Limited
Element.activeViewTransition
Read the active element-scoped ViewTransition — limited support.
—Limited
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
Android WebViewSupported · Modern WebView
Full support
activeViewTransitionLimited
Bottom line: Detect "activeViewTransition" in el. Pair with Element.startViewTransition(). Expect null when idle or when the API is missing.
Frequently Asked Questions
A ViewTransition instance for the view transition currently active on that element, or null if none is active (MDN).
MDN marks Element.activeViewTransition as Experimental and Limited availability (not Baseline). It is not Deprecated or Non-standard.
Yes. You read it to get the active ViewTransition (or null). You do not assign a transition to the property.
Element.startViewTransition() starts an element-scoped transition and returns a ViewTransition. activeViewTransition lets you read that ongoing transition later without keeping your own reference (MDN).
When the element has no active view transition — before one starts, after it finishes, or if the API is unsupported.
Related idea, different scope. Document.activeViewTransition is for document-scoped transitions. Element.activeViewTransition is for element-scoped transitions on that element.