You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
View Transitions keep the pseudo DOM state alive until there is an active animation on any of the generated pseudo-elements. This is fine if the author is using CSS or Web Animations, but not if the animation is driven by script using rAF or setTimeout.
We can add an API as follows which allows the author to pass a promise indicating when a custom script driven animation has finished.
functionanimateHeader(transition){transition.waitUntil((async()=>{// animate the header here, and return when done})());}asyncfunctionstartAnimations(transition){awaittransition.ready;animateHeader(transition);animateFooter(transition);animateThumbnail(transition);}