@import './var';

@keyframes hl-slide-up-enter {
  from {
    transform: translate3d(0, 100%, 0);
  }
}

@keyframes hl-slide-up-leave {
  to {
    transform: translate3d(0, 100%, 0);
  }
}

@keyframes hl-slide-down-enter {
  from {
    transform: translate3d(0, -100%, 0);
  }
}

@keyframes hl-slide-down-leave {
  to {
    transform: translate3d(0, -100%, 0);
  }
}

@keyframes hl-slide-left-enter {
  from {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes hl-slide-left-leave {
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes hl-slide-right-enter {
  from {
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes hl-slide-right-leave {
  to {
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes hl-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hl-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes hl-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hl-fade {
  &-enter-active {
    animation: $animation-duration-base hl-fade-in both
      $animation-timing-function-enter;
  }

  &-leave-active {
    animation: $animation-duration-base hl-fade-out both
      $animation-timing-function-leave;
  }
}

.hl-slide-up {
  &-enter-active {
    animation: hl-slide-up-enter $animation-duration-base both
      $animation-timing-function-enter;
  }

  &-leave-active {
    animation: hl-slide-up-leave $animation-duration-base both
      $animation-timing-function-leave;
  }
}

.hl-slide-down {
  &-enter-active {
    animation: hl-slide-down-enter $animation-duration-base both
      $animation-timing-function-enter;
  }

  &-leave-active {
    animation: hl-slide-down-leave $animation-duration-base both
      $animation-timing-function-leave;
  }
}

.hl-slide-left {
  &-enter-active {
    animation: hl-slide-left-enter $animation-duration-base both
      $animation-timing-function-enter;
  }

  &-leave-active {
    animation: hl-slide-left-leave $animation-duration-base both
      $animation-timing-function-leave;
  }
}

.hl-slide-right {
  &-enter-active {
    animation: hl-slide-right-enter $animation-duration-base both
      $animation-timing-function-enter;
  }

  &-leave-active {
    animation: hl-slide-right-leave $animation-duration-base both
      $animation-timing-function-leave;
  }
}
