吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 2389|回复: 3
收起左侧

[其他转载] CSS3 自制 loading 动画效果

[复制链接]
小马驾到 发表于 2019-3-16 14:12
[HTML] 纯文本查看 复制代码
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>CSS3 自制 loading 动画效果</title>
</head>
<body>

<style>
    .loading-wrap {
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: #eee;
        line-height: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .loading-circle {
        position: relative;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,.1);
        box-sizing: border-box;
    }
    .loading-circle-anim {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 24px;
        margin-left: -12px;
        margin-top: -12px;
        border-radius: 50%;
        border: 2px solid #888;
        box-sizing: border-box;
        animation: loading 2s ease-out infinite;
    }
    .loading-circle-anim:after {
        content: " ";
        z-index: 1;
        position: absolute;
        background: #fff;
        top: -5px;
        left: 58%;
        bottom: 0;
        width: 50%;
        height: 30px;
    }
    @keyframes loading {
        0% {
            transform: rotate(0deg);
        }
        50% {
            transform: rotate(360deg);
        }
        100% {
            transform: rotate(720deg);
        }
    }
</style>

<div class="loading-wrap">
    <div class="loading-circle">
        <div class="loading-circle-anim"></div>
    </div>
</div>

</body>
</html>

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

wmg13178599398 发表于 2019-3-16 16:16
可以,强
Easul 发表于 2019-3-16 19:11
巨无霸 发表于 2019-3-16 19:42
复制代码 → txt文本 → 后缀改成.html → 浏览器打开,显示白板。我感觉被耍了
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-14 07:56

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表