Loading...
::view-transition-new(root) {
animation: slide-in 0.4s ease-out;
}::view-transition-new(root) {
animation: slide-in 0.4s ease-out;
}
@media (prefers-reduced-motion: reduce) {
::view-transition-new(root) {
animation: none;
}
}Users who ask for less motion see the new view without the slide.
object-fit wasn't set.::view-transition-new() have matching exit animations on ::view-transition-old().object-fit and height: 100% to avoid stretching.@media (prefers-reduced-motion: reduce).Yes. It shows the new state as it renders, so animations and video in it keep playing.
The old and new images have different aspect ratios; set height: 100% and object-fit on both to control scaling.