html 边缘融合加载
作者:小教学发布时间:2023-10-02分类:程序开发学习浏览:445
导读:html代码<!DOCTYPEhtml><htmllang="en"><head><metacharset=...

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>
- 程序开发学习排行
- 最近发表
-
- WordPress 应用:如何修改模版头部文件中的 wp_head() - Web前端
- SEO 优化:YouTube SEO Plugin 提升影片流量 - Web前端
- 使用 React 服务器组件在 Next.js 13 中进行国际化 - Web前端
- 3 个意想不到的技术 SEO 问题示例(以及如何解决它们) - Web前端
- Vue 技术专题:Suspense、路由模式与单元测试实践 - Web前端
- 如何防止 WordPress SQL 注入攻击? - Web前端
- SEO 优化:如何围绕技术SEO框架以构建和制定策略? - Web前端
- SEO优化:YouTube SEO 关键词研究工具 - Web前端
- 2025 年帮助代理机构提升客户业绩的 14 款最佳 SEO 工具 - Web前端
- 客户端:服务器之间设置本地 DNS 服务器 - Web前端


