@mixin motion-common {
  animation-duration: $animation-time;
  animation-fill-mode: both;
}

@mixin make-motion($className, $keyframeName) {
  .#{$className}-enter-active, .#{$className}-appear {
    @include motion-common;
    // animation-play-state: paused;
    animation-name: #{$keyframeName}In;
    animation-play-state: running;
  }
  .#{$className}-leave-active {
    @include motion-common;
    // animation-play-state: paused;
    animation-name: #{$keyframeName}Out;
    animation-play-state: running;
  }
}

@import "fade";
@import "move";
@import "ease";
@import "slide";

.collapse-transition {
  transition: $transition-time height ease-in-out, $transition-time padding-top ease-in-out, $transition-time padding-bottom ease-in-out;
}

.h-load-loop {
  display: inline-block;
  animation: lRotate 1s infinite linear;
}

@keyframes lRotate {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
