Get to know MDN better
Since January 2026, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The ViewTransitionTypeSet interface of the View Transition API is a set-like object representing the types of an active view transition. This enables the types to be queried or modified on-the-fly during a transition.
The ViewTransitionTypeSet object can be accessed via the ViewTransition.types property.
The property and method links below link to the JavaScript Set object documentation.
Returns the number of values in the set.
Inserts the specified value into this set, if it is not already present.
Set.prototype.clear()Removes all values form the set.
Set.prototype.delete()Removes the specified value from this set, if it is in the set.
Set.prototype.entries()Returns a new iterator object that contains an array of [value, value] for each element in the set, in insertion order.
Set.prototype.forEach()Calls a callback function once for each value present in the set, in insertion order.
Set.prototype.has()Returns a boolean indicating whether the specified value exists in the set.
Set.prototype.keys()An alias for Set.prototype.values().
Set.prototype.values()Returns a new iterator object that yields the values for each element in the set, in insertion order.
Set.prototype[Symbol.iterator]()Returns a new iterator object that yields the values for each element in the set, in insertion order.
| CSS View Transitions Module Level 2 # viewtransitiontypeset |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Dec 9, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.