::view-transition-old(root) {
animation: slide-out 0.5s ease-out;
}
::view-transition-new(root) {
animation: slide-in 0.5s ease-out;
}
@keyframes slide-out {
from {
transform: translateY(0);
}
to {
transform: translateY(100%);
}
}
@keyframes slide-in {
from {
transform: translateY(-100%);
}
to {
transform: translateY(0);
}
}