.au-loading {
  position: relative;

  .au-loading-mask{
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    text-align: center;
  }

  .au-loading-animate {
    display: inline-block;
    width: 48px;
    height: 48px;
    position: relative;
    margin: 0;
    -webkit-animation-duration: 5.6s;
    animation-duration: 5.6s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-name: nextVectorRoute;
    animation-name: nextVectorRoute;
  }

  .au-loading-content {
    position: relative;

    .au-loading-mask-bg {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 99;
      opacity: .5;
      -webkit-filter: blur(1px);
      filter: blur(1px);
      background: #fff;
    }
  }

  .au-loading-animate {
    .au-loading-dot {
      position: absolute;
      margin: auto;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #5584ff;
      -webkit-animation-timing-function: ease-in-out;
      animation-timing-function: ease-in-out;
      -webkit-animation-iteration-count: infinite;
      animation-iteration-count: infinite;
      -webkit-animation-duration: 1.4s;
      animation-duration: 1.4s;

      &:first-child {
        top: 0;
        bottom: 0;
        left: 0;
        -webkit-animation-name: nextVectorDotsX;
        animation-name: nextVectorDotsX;
      }

      &:nth-child(2) {
        left: 0;
        right: 0;
        top: 0;
        opacity: .8;
        -webkit-animation-name: nextVectorDotsY;
        animation-name: nextVectorDotsY;
      }

      &:nth-child(3) {
        top: 0;
        bottom: 0;
        right: 0;
        opacity: .6;
        -webkit-animation-name: nextVectorDotsXR;
        animation-name: nextVectorDotsXR;
      }
      &:nth-child(4) {
        left: 0;
        right: 0;
        bottom: 0;
        opacity: .2;
        -webkit-animation-name: nextVectorDotsYR;
        animation-name: nextVectorDotsYR;
      }
    }
  }
}

@keyframes nextVectorRoute{
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  5% {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
  }
  25% {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
  }
  30% {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
  }
  50% {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
  }
  55% {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
  }
  75% {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
  }
  80% {
    -webkit-transform: rotate(1turn);
    -ms-transform: rotate(1turn);
    transform: rotate(1turn);
  }
  100% {
    -webkit-transform: rotate(1turn);
    -ms-transform: rotate(1turn);
    transform: rotate(1turn);
  }
}

@keyframes nextVectorDotsX {
  25% {
    left: 0;
  }
  45%, 50% {
    left: 16.8px;
    width: 14.4px;
    height: 14.4px;
  }
  90% {
    left: 0;
    height: 12px;
    width: 12px;
  }
}

@keyframes nextVectorDotsY {
  25% {
    top: 0;
  }
  45%, 50% {
    top: 16.8px;
    height: 14.4px;
    width: 14.4px;
  }
  90% {
    top: 0;
    height: 12px;
    width: 12px;
  }
}

@keyframes nextVectorDotsXR {
  25% {
    right: 0;
  }
  45%, 50% {
    right: 16.8px;
    width: 14.4px;
    height: 14.4px;
  }
  90% {
    right: 0;
    height: 12px;
    width: 12px;
  }
}

@keyframes nextVectorDotsYR {
  25% {
    bottom: 0;
  }
  45%, 50% {
    bottom: 16.8px;
    height: 14.4px;
    width: 14.4px;
  }
  90% {
    bottom: 0;
    height: 12px;
    width: 12px;
  }
}
