@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes slide-from-right {
  from { transform: translateX(30px); }
}

@keyframes slide-to-left {
  to { transform: translateX(-30px); }
}

::page-transition-outgoing-image(root) {
  animation: 900ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
    3000ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

::page-transition-incoming-image(root) {
  animation: 2100ms cubic-bezier(0, 0, 0.2, 1) 900ms both fade-in,
    3000ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}