码迷,mamicode.com
首页 > 其他好文 > 详细

h5加载过程的小圈

时间:2020-05-03 20:37:52      阅读:64      评论:0      收藏:0      [点我收藏+]

标签:orange   nload   char   tle   pre   ima   doc   ati   abs   

<!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>

h5加载过程的小圈

标签:orange   nload   char   tle   pre   ima   doc   ati   abs   

原文地址:https://www.cnblogs.com/jlfw/p/12823155.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!