码迷,mamicode.com
首页 > Web开发 > 详细

css手写动态加载中...

时间:2020-01-14 20:34:00      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:space   hit   black   inf   png   display   set   font   pac   

技术图片

技术图片

<!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>
        .box {
            margin: 200px;
        }

        .load-indicator {
            font-size: 16px;
            color: black;

        }

        .span {
            display: inline-block;
            overflow: hidden;
            height: 1em;
            line-height: 1;
            vertical-align: -.25em;

        }

        .span::after {
            display: block;
            white-space: pre-wrap;
            content: "...\A..\A.";
            animation: loading 3s infinite step-start both;
        }

        @keyframes loading {
            33% {
                transform: translate3d(0, -2em, 0);
            }

            66% {
                transform: translate3d(0, -1em, 0);
            }
        }

    </style>
</head>
<body>
    <div class="box">
        <div class="load-indicator">加载中<span class="span"></span></div>
    </div>
</body>
</html>

css手写动态加载中...

标签:space   hit   black   inf   png   display   set   font   pac   

原文地址:https://www.cnblogs.com/qlongbg/p/12193661.html

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