css3基础---光斑动画练习

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      html,
      body {
        height: 100%;
        height: 100%;
      }

      * {
        margin: 0;
        padding: 0;
      }

      .wrap {
        height: 100%;
        width: 100%;
        background-color: black;
        text-align: center;
      }

      .wz {
        margin-top: 100px;
        display: inline-block;
        font: bold 80px "微软雅黑";
        color: rgba(145, 145, 145, 0.5);
        
        background: linear-gradient(
          125deg,
          rgba(255, 255, 255, 0) 100px,
          rgba(255, 255, 255, 1) 150px,
          rgba(255, 255, 255, 0) 200px
        );
        background-repeat: no-repeat;
        -webkit-background-clip: text;
        transition: 3s;
      }

      .wz:hover {
        background-position: 400px 0;
      }
    </style>
  </head>
  <body>
    <div class="wrap">
      <h1 class="wz">中华人名*</h1>
    </div>
  </body>
</html>

 css3基础---光斑动画练习

 

上一篇:Smokeping -- 监控网络质量


下一篇:使用Android编写录制视频小程序演示样例