h5加载过程的小圈

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .onload_circle {
            background-color: rgba(255,255,255,0.5);
            position: fixed;
            top: 50%;
            left: 50%;
            margin-top: -26px;
            margin-left: -26px;
            width: 50px;
            height: 50px;
            border: 1px solid orange;
            border-radius: 50%; 
            transform-origin: center center; 
            animation: rotate  1s infinite linear;
            transition: all 1s;
        }

        .ball {
            display: inline-block;
            width: 6px;
            height: 6px;
            background-color: red;
            border-radius: 50%;
            position: absolute;
            left: -3px;
            top: 23px;
        }
        @keyframes rotate  {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
    </style>
</head>
<body style="background-color: red;">
    <div class="onload_circle">
        <span class="ball"></span>
    </div>
</body>
</html>
上一篇:【轻松集赞】写了个涉嫌混淆微信官方服务的小程序


下一篇:原生js是实现一个简单的时钟(transform属性)