SOURCE

console 命令行工具 X clear

                    
>
console
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>demo</title>
  <style>
  
    body{
      /* background: #fff; */
    }
    
    /* .demo {
        font-weight: bold;
        color: #000;
        background: red linear-gradient( 90deg, transparent 25%,#FFD200 40%, #F7971E 60%,transparent);
        background-size: 60px 60px;
        background-repeat: no-repeat;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: scratchy 3s linear infinite;
    } */

    @keyframes scratchy {
        0% {
            background-position: -100% 0;
        }
        100% {
            background-position: 130% 0;
        }
    }




    .nickname{
        color: red;
        font-weight: bold;
        position: relative;
    }
    .nickname::before {
        content: attr(data-nickname);
        position: absolute;
        left: 0;
        top: 0;
        background-image: linear-gradient( 90deg, transparent 25%,#FFD200 40%, #F7971E 60%,transparent);
        background-size: 60px 60px;
        background-repeat: no-repeat;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: scratchy 2s linear infinite;
        
    }
   
  
  </style>
</head>
<body>
  <!-- <p class="demo">��pastel��������������</p> -->

  <p class="nickname" data-nickname="文字高亮动态显示">文字高亮动态显示</p>
  
</body>
</html>