css转圈圈

 

<!--
 * @Description: 
 * @Version: 2.0
 * @Autor: sun
 * @Date: 2022-07-23 21:39:41
 * @LastEditors: lhl
 * @LastEditTime: 2022-07-23 21:50:33
-->
<template>
  <div class="progressLoading">

    <div class="isLoadingState">
      <div :class="`spinnerOne mobile`"></div>
      <div class="loadNum">{{ loadingNum }}%</div>
    </div>


  </div>
</template>

<script>
export default {
  name: 'progressLoading',
  props: {
    loadingNum: Number,
  },
  created() {
  },
  data() {
    return {

    }
  }
}
</script>

<style lang="less" scoped>
.progressLoading {
  width: 100%;
  height: 100%;
  position: relative;

  .isLoadingState {
    position: absolute;
    z-index: 1111;
    width: 100%;
    height: 100%;
    pointer-events: none;
    .spinnerOne {
      position: absolute;
      &.mobile {
        top: calc(45% - 15px);
        left: calc(50% - 85px);
        background: none;
        width: 180px;
        height: 180px;
        border: 8px solid rgba(255, 255, 255, 0.5);
        border-top-color: #ffff;
        border-radius: 50%;
        animation: circleround 2.5s infinite;
      }
    }
    .loadNum {
      width: 100px;
      font-size: 30px;
      font-family: PingFang SC-Regular, PingFang SC;
      font-weight: 400;
      color: #FFFFFF;
      position: absolute;
      text-align: center;
      z-index: 99;
      top: calc(45% + 65px);
      left: calc(50% - 60px + 25px);
    }

    @keyframes circleround {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

  }
}
</style>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值