@prefix: deye-grid-loading;

.@{prefix} {
  &- {
    &root {
      position: relative;
      z-index: 1;
    }

    &loading-box {
      position: absolute;
      left: 50%;
      top: 50%;
      transform-origin: center;
      transform: translate(-50%, -50%) scale(0.5);
      animation: deye-loading-fade-in 500ms;
      width: 90px;

      & > div:nth-child(1) {
        animation-delay: 0.58s;
        animation-duration: 0.9s;
      }

      & > div:nth-child(2) {
        animation-delay: 0.01s;
        animation-duration: 0.94s;
      }

      & > div:nth-child(3) {
        animation-delay: 0.25s;
        animation-duration: 1.43s;
      }

      & > div:nth-child(4) {
        animation-delay: -0.03s;
        animation-duration: 0.74s;
      }

      & > div:nth-child(5) {
        animation-delay: 0.21s;
        animation-duration: 0.68s;
      }

      & > div:nth-child(6) {
        animation-delay: 0.25s;
        animation-duration: 1.17s;
      }

      & > div:nth-child(7) {
        animation-delay: 0.46s;
        animation-duration: 1.41s;
      }

      & > div:nth-child(8) {
        animation-delay: 0.02s;
        animation-duration: 1.56s;
      }

      & > div:nth-child(9) {
        animation-delay: 0.13s;
        animation-duration: 0.78s;
      }

      & > div {
        background-color: #CCCCCC;
        width: 16px;
        height: 16px;
        border-radius: 100%;
        margin: 6px;
        animation-fill-mode: both;
        display: inline-block;
        float: left;
        animation-name: ball-grid-pulse;
        animation-iteration-count: infinite;
      }
    }
  }
}


@keyframes ball-grid-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

