Loading...
::view-transition-old(root) {
animation: slide-out 0.3s;
}::view-transition-old(root) {
animation: slide-out 0.3s;
}
::view-transition-new(root) {
animation: slide-in 0.3s;
}The new view gets a matching entry animation, so the custom exit doesn't clash with the default fade-in.
::view-transition-old() have matching entry animations on ::view-transition-new().animation: none only when a replacement animation exists.@media (prefers-reduced-motion: reduce).A fade-out that runs while ::view-transition-new() fades in, which creates a cross-fade.
It is a static image captured before the DOM update, so animations and video inside it don't play.