@import "~@/assets/styles/utils/index.scss";

@include c(loading) {
  @include e(wrapper) {
    width: px2rpx(50px);
    height: px2rpx(30px);
    position: relative;
    display: inline-block;
  }

  .dot {
    width: px2rpx(10px);
    height: px2rpx(10px);
    background: map-get($colors, primary);
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 5rpx);
  }

  .dot1 {
    left: px2rpx(0px);
    -webkit-animation: dot-jump 0.5s cubic-bezier(0.77, 0.47, 0.64, 0.28)
      alternate infinite;
    animation: dot-jump 0.5s cubic-bezier(0.77, 0.47, 0.64, 0.28) alternate
      infinite;
  }

  .dot2 {
    left: px2rpx(20px);
    -webkit-animation: dot-jump 0.5s 0.2s cubic-bezier(0.77, 0.47, 0.64, 0.28)
      alternate infinite;
    animation: dot-jump 0.5s 0.2s cubic-bezier(0.77, 0.47, 0.64, 0.28) alternate
      infinite;
  }

  .dot3 {
    left: px2rpx(40px);
    -webkit-animation: dot-jump 0.5s 0.4s cubic-bezier(0.77, 0.47, 0.64, 0.28)
      alternate infinite;
    animation: dot-jump 0.5s 0.4s cubic-bezier(0.77, 0.47, 0.64, 0.28) alternate
      infinite;
  }

  @-webkit-keyframes dot-jump {
    0% {
      -webkit-transform: translateY(0);
      transform: translateY(0);
    }
    100% {
      -webkit-transform: translateY(-15upx);
      transform: translateY(-15upx);
    }
  }
  @keyframes dot-jump {
    0% {
      -webkit-transform: translateY(0);
      transform: translateY(0);
    }
    100% {
      -webkit-transform: translateY(-15upx);
      transform: translateY(-15upx);
    }
  }
}
