/*
 *  Usage:
 *
      <div class="xt_woofc-spinner-chasing-dots">
        <div class="xt_woofc-spinner-child xt_woofc-spinner-dot1"></div>
        <div class="xt_woofc-spinner-child xt_woofc-spinner-dot2"></div>
      </div>
 *
 */
@import "../variables";

.xt_woofc-spinner-chasing-dots {
  $animationDuration: 2.0s;

  margin: $spinkit-spinner-margin;
  width: $spinkit-spinner-size;
  height: $spinkit-spinner-size;
  position: relative;
  text-align: center;
  animation: xt_woofc-spinner-chasingDotsRotate $animationDuration infinite linear;

  .xt_woofc-spinner-child {
    width: 60%;
    height: 60%;
    display: inline-block;
    position: absolute;
    top: 0;
    background-color: $spinkit-spinner-color;
    border-radius: 100%;
    animation: xt_woofc-spinner-chasingDotsBounce $animationDuration infinite ease-in-out;
  }

  .xt_woofc-spinner-dot2 {
    top: auto;
    bottom: 0;
    animation-delay: $animationDuration/2;
  }
}

@keyframes xt_woofc-spinner-chasingDotsRotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes xt_woofc-spinner-chasingDotsBounce {
  0%, 100% {
    transform: scale(0);
  } 50% {
    transform: scale(1.0);
  }
}
