Skip to content

Last updated: First published:

The View Transition API

The View Transition API is a rather new API. In this section you can find…

While I add more pages, I’m also happy that I can offer some links to previous work on the astro-vtbot package:

WhenWhatWhere
2025-08-25Expose the currently active view transition object as activeViewTransition on the document, or on an element for scoped view transitions.Level 2, Exposing current transition
2025-06-18The old, new, and image-pair pseudos now also inherit the timing function, iteration count, direction, play state animation poperties.Level 1, User Agent Styles
2025-06-16Nested view transition groups are children of a new pseudo-element, which is the sibling of the image pair. The border width of this ::view-transition-group-children() pseudo-element gets automatically copied over from the original element.Level 2, Group Children
2025-03-24Change to view-transition-name: auto when the element has an id property: Instead of using the id as view transition name, now generates a random name like match-element.Level 2, View Transition Name
2025-02-20Added view-transition-name: match-element; for automatically assigning element specific view transition names.Level 2, View Transition Name

These may or may not make it into the spec.

WhenWhatWhere
2025-08-05Introduce DOM nodes as proxies to pseudo-elements. This would for example allow us to define an event listener for ::view-transition-new(button) using such a proxy.#12575
2025-06-18Also copy border radius and corner shape form old and new original elements and animate the ::view-transition-group-children() from old to new values.#12357, #12363
2025-05-28User defined view transition names must not start with -ua- as those are reserved for the user agent, e.g. for match-element and auto.#12241
2025-01-29::view-transition-new(*) { pointer-events: auto } to forward pointer events from the pseudo-element to the original element.#11596

Highly recommended introductions by examples and deep dives: