Skip to main content

Module view_transition

Module view_transition 

Source
Expand description

View transition pseudo-elements as selectors over stand-in elements. A rule for ::view-transition-old(card) is rewritten to match an element sk-vt-old[sk-vt-name="card"] under sk-vt-image-pair, sk-vt-group and sk-vt, whose parent is the document element; the renderer builds those elements while a transition runs (MatchDom::is_view_transition_pseudo).

Constants§

ACTIVE_ATTR
The root’s attribute that :active-view-transition reads: the active transition’s types, space-separated (empty when it has none).
NAME_ATTR
The attribute that carries the transition name on every stand-in but sk-vt.
TAGS
The stand-in tags: ::view-transition, -group, -image-pair, -old, -new.

Functions§

inherit_animation_timing
The image pair and images inherit their group’s animation timing in the spec’s UA sheet (animation-duration: inherit, …), which the cascade here cannot say: each longhand still at its initial value takes the group’s.