Transitionground

Slide to up

👆


    .slideToUp {
      view-transition-name: slide-to-up-transition;
    }
    
    ::view-transition-old(slide-to-up-transition) {
      animation: slide-to-down 500ms ease-in-out 1 forwards;
    }
    
    ::view-transition-new(slide-to-up-transition) {
      animation: slide-from-up 500ms ease-in-out 1 forwards;
    }

    @keyframes slide-to-down {
      from {
        transform: translateY(0);
      }
      to {
        transform: translateY(-100%);
      }
    }

    @keyframes slide-from-up {
      from {
        transform: translateY(100%);
      }
      to {
        transform: translateY(0);
      }
    }