@import './var';

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

  to {
    opacity: 1;
  }
}

@keyframes ovui-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.@{prefix}fade {
  &-enter-active {
    animation: @animation-duration-base ovui-fade-in;
  }

  &-leave-active {
    animation: @animation-duration-base ovui-fade-out;
  }
}

// @keyframes ovui-loading {
//   0% {
//     transform: rotate(0);
//     animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
//   }

//   50% {
//     transform: rotate(180deg);
//     animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
//   }

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

@keyframes ovui-loading-circle {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.@{prefix}loading-circle {
  display: inline-block;
  transform-origin: center;
  animation: ovui-loading-circle 1s linear infinite;
}
