loading.scss 711 Bytes
.layout {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #fff;

  .loading {
    height: 48rpx;

    view {
      width: 16rpx;
      height: 100%;
      display: inline-block;
      background-color: #0052d9;
      animation: stretchdelay 1.2s infinite ease-in-out;
      margin: 0 4rpx;

      &:nth-child(2) {
        animation-delay: -1.1s;
      }

      &:nth-child(3) {
        animation-delay: -1s;
      }

      &:nth-child(4) {
        animation-delay: -.9s;
      }
    }
  }
}

@keyframes stretchdelay {

  0%,
  100%,
  40% {
    transform: scaley(.33);
  }

  20% {
    transform: scaley(1);
  }
}