v140 · css
View transition pseudos inherit animation-delay.
View Transitions project adds a tree of pseudo elements that have various animations applied to them. For ease of development and customization some niceties are provided, such as inheriting animation-duration. This feature adds another nicety: inherit animation-delay.
concepts
-
Inherit animation-delay
animation-delay now propagates from view-transition group to its children, matching the rest of the animation-* inheritance.
-
Staggered List
The whole reason for the inheritance: stagger an 8-tile shuffle by setting per-item
animation-delayin CSS. No per-pseudo override blocks needed. -
Cascading Delay
Five rows, each with a per-row
animation-delay. The cascade survives into the transition pseudos so the stagger reads on the animation too. -
Inheritance Tree
The four-level pseudo tree visualised pre and post 140. Toggle the Chrome version to see
animation-delaypropagate down the chain. -
Page Entrance Choreographer
A mock article page with headline, subheadings, paragraphs, sidebar, and footer — each with a
view-transition-name. Click "Enter page" to trigger staggered entrance via inheritedanimation-delay. Drag per-element delay sliders to re-choreograph the entrance. Four preset choreographies: slide-up, fade cascade, left-to-right sweep, center-out ripple.
why it shipped
View Transitions project adds a tree of pseudo elements that have various animations applied to them. For ease of development and customization some niceties are provided, such as inheriting animation-duration. This feature adds another nicety: inherit animation-delay.