• Loading动画


    <html>
    <head>
      <meta charset="utf-8"/>
      <title> CSS Creative Loader Animation Effect</title>
    </head>
    <style>
      *{
        margin:0;
        padding:0;
        box-sizing:border-box;
      }
      @keyframes animateBg{
        0%{
          filter: hue-rotate(0deg);
        }
        100%{
          filter: hue-rotate(360deg);
        }
      }
      section{
        display:flex;
        justify-content:center;
        align-items: center;
        min-height: 100vh;
        background: #042104;
        animation: animateBg 10s linear infinite;
      }
      section .loader{
        position: relative;
        width:120px;
        height:120px;
      }
      section .loader span{
        position: absolute;
        top:0;
        left:0;
        width:100%;
        height:100%;
        transform: rotate(calc(18deg * var(--i)));
      }
      section .loader span::before{
        content: '';
        position: absolute;
        top: 0;
        left:0;
        border-radius: 50%;
        width: 15px;
        height:15px;
        background: #00ff0a;
        box-shadow: 0 0 10px #00ff0a,
                    0 0 20px #00ff0a,
                    0 0 40px #00ff0a,
                    0 0 60px #00ff0a,
                    0 0 80px #00ff0a,
                    0 0 100px #00ff0a;
        animation: animate 2s linear infinite;
        animation-delay: calc(0.1s * var(--i));
      }
      @keyframes animate {
        0%{
          transform: scale(1);
        }
        100%{
          transform: scale(0);
        }
      }
      
    </style>
    <body>
      <section>
        <div class='loader'>
          <span style="--i:1;"></span>
          <span style="--i:2;"></span>
          <span style="--i:3;"></span>
          <span style="--i:4;"></span>
          <span style="--i:5;"></span>
          <span style="--i:6;"></span>
          <span style="--i:7;"></span>
          <span style="--i:8;"></span>
          <span style="--i:9;"></span>
          <span style="--i:10;"></span>
          <span style="--i:11;"></span>
          <span style="--i:12;"></span>
          <span style="--i:13;"></span>
          <span style="--i:14;"></span>
          <span style="--i:15;"></span>
          <span style="--i:16;"></span>
          <span style="--i:17;"></span>
          <span style="--i:18;"></span>
          <span style="--i:19;"></span>
          <span style="--i:20;"></span>
        </div>
      </section>
    <script>
    </script>
    </body>
    </html>
  • 相关阅读:
    现代C语言程序设计之数据存储
    Linux系统运维与架构设计之文件管理
    Linux系统运维与架构设计之系统基本使用
    Linux系统运维与架构设计之搭建运维环境
    Linux系统运维与架构设计之Linux概述
    Linux系统运维与架构设计技术栈
    架构师成长之道-C语言基础之C语言概述
    K3/Cloud树形单据体的rowId赋值
    K3违反内码唯一键约束
    K3修改字段名
  • 原文地址:https://www.cnblogs.com/jxjl/p/13749248.html
Copyright © 2020-2023  润新知