SOURCE

console 命令行工具 X clear

                    
>
console
<div class="cy-loading" load-tip="加载中..."></div>
.cy-loading {
    width: 100vw;
    height: 100vh;
    box-shadow: 0 0 5px #ccc;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
  }
  .cy-loading::before,
  .cy-loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    margin: auto;
  }
  .cy-loading::before {
    content: attr(load-tip);
    font-size: 13px;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    width: 150px;
    height: 150px;
    line-height: 180px;
    border-radius: 5px;
    box-shadow: 0 0 15px #c5c5c5;
  }
  .cy-loading::after {
    top: -28px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #0f8cd4;
    border-top-color: transparent;
    z-index: 5;
    animation: rotate1t 0.8s linear infinite;
  }
  @keyframes rotate1t {
    100% {
      transform: rotate(1turn);
    }
  }