css-案例-loading

Title

 

 

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        .loading {
            display: inline-block;
            width: 100px;
            height: 100px;
            border: 10px solid #333333;
            border-bottom: #cccccc 10px solid;
            border-radius: 50%;
            -webkit-animation: load 1.1s infinite linear;
        }

        @-webkit-keyframes load {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }
    </style>
</head>

<body>
    <div class="loading"></div>
</body>

</html>

posted @ 2020-12-16 22:19  zc-lee  阅读(54)  评论(0编辑  收藏  举报