html 边缘融合加载

html 代码

html 复制代码
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>边缘融合加载</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            height: 100vh;
            padding-bottom: 80px;
            background: #000000;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        .loading {
            width: 300px;
            height: 300px;
            background: #000000;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            filter: contrast(15);
        }

        .loading span {
            width: 30px;
            height: 30px;
            background: #ffffff;
            border-radius: 50%;
            position: absolute;
            left: 50px;
            transform-origin: 100px center;
            transform: rotate(calc(360deg / 8 * var(--i)));
            animation: show 3s infinite;
            filter: blur(5px);
        }

        @keyframes show {
            0% {
                transform: rotate(0deg) translateX(80px);
            }
            50%, 100% {
                transform: rotate(calc(360deg / 8 * var(--i)));
            }
            100% {
                transform: rotate(360deg) translateX(80px);
            }
        }

        .text {
            font-size: 20px;
            color: #ffffff;
            padding-left: 10px;
            display: flex;
        }

        .text span {
            padding: 0 4px;
            animation: upDown 1.5s ease-in-out infinite;
            animation-delay: calc(0.1s * var(--i));
        }

        @keyframes upDown {
            0% {
                transform: translateY(0px);
            }
            20% {
                transform: translateY(-24px);
            }
            40%, 100% {
                transform: translateY(0px);
            }
        }
    </style>
</head>
<body>
<div class="loading">
    <span style="--i:0;"></span>
    <span style="--i:1;"></span>
    <span style="--i:2;"></span>
    <span style="--i:3;"></span>
    <span style="--i:4;"></span>
    <span style="--i:5;"></span>
    <span style="--i:6;"></span>
    <span style="--i:7;"></span>
</div>
<div class="text">
    <span style="--i:0">正</span>
    <span style="--i:1">在</span>
    <span style="--i:2">加</span>
    <span style="--i:3">中</span>
    <span style="--i:4">,</span>
    <span style="--i:5">请</span>
    <span style="--i:6">等</span>
    <span style="--i:7">待</span>
    <span style="--i:8">.</span>
    <span style="--i:9">.</span>
    <span style="--i:10">.</span>
</div>
</body>
</html>
相关推荐
weixin_4368040711 小时前
图片在线预览工具 - 输入URL即刻查看远程图片
html·媒体
wordbaby12 小时前
Flexbox 布局中的滚动失效问题:为什么需要 `min-h-0`?
前端·css
前端小黑屋13 小时前
查看 Base64 编码的字体包对应的字符集
前端·css·字体
weixin_5841214314 小时前
HTML+layui表单校验范围值,根据条件显示隐藏某输入框
前端·html·layui
hqwest15 小时前
码上通QT实战04--主窗体布局
开发语言·css·qt·布局·widget·layout·label
0思必得015 小时前
[Web自动化] BeautifulSoup导航文档树
前端·python·自动化·html·beautifulsoup
松涛和鸣16 小时前
DAY47 FrameBuffer
c语言·数据库·单片机·sqlite·html
lcc18716 小时前
CSS3 伸缩盒模型
css3
西凉的悲伤17 小时前
html制作太阳系行星运行轨道演示动画
前端·javascript·html·行星运行轨道演示动画
狗哥哥18 小时前
企业级 Vue3 + Element Plus 主题定制架构:从“能用”到“好用”的进阶之路
前端·css·架构