:root { --transition-direction: 1; }
::view-transition-old(root) { animation: 90ms cubic-bezier(0.4, 0, 1, 1) 0s 1 normal both running slide-out, 90ms cubic-bezier(0.4, 0, 1, 1) 0s 1 normal both running fade-out; }
::view-transition-new(root) { animation: 90ms cubic-bezier(0, 0, 0.2, 1) 0s 1 normal both running slide-in, 90ms cubic-bezier(0, 0, 0.2, 1) 0s 1 normal both running fade-in; }
@keyframes slide-out { 
  0% { transform: translateX(0px); }
  100% { transform: translateX(calc(-100% * var(--transition-direction, 1))); }
}
@keyframes slide-in { 
  0% { transform: translateX(calc(100% * var(--transition-direction, 1))); }
  100% { transform: translateX(0px); }
}
@keyframes fade-out { 
  0% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fade-in { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@supports (view-transition-name:auto) {
  html { view-transition-name: root; }
}
