css3同心圆闪烁扩散效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style type='text/css'>
.circle{width:200px;height:200px;position:absolute;top:50%;left:50%;margin:-100px 0 0 -100px;}
.circle1, .circle2, .circle3, .center{
position:absolute;
left:50%;
top:50%;
margin:-30px 0 0 -30px;
width:60px;
height:60px;
border-radius:30px;
background-color:#666666;
}
.center{
position:absolute;
left:50%;
top:50%;
margin:-35px 0 0 -35px;
width:70px;
height:70px;
border-radius:35px;
background:#111111;/
text-align:center;
line-height:70px;
color:#EAEAEA;
font-size:16px;
font-family:'';
}
.circle1{
-webkit-animation:circle 3s linear infinite;
animation:circle 3s linear infinite;
}
.circle2{
-webkit-animation:circle 3s linear 0.8s infinite;
animation:circle 3s linear 0.8s infinite;
}
.circle3{
-webkit-animation:circle 3s linear 1.6s infinite;/* Safari and Chrome */
animation:circle 3s linear 1.6s infinite;
}
@-webkit-keyframes circle{ /* Safari and Chrome */
from{
opacity:1;
-webkit-transform:scale(0);
}
to{
opacity:0;
-webkit-transform:scale(3);
}
}
</style>
</head>
<body>
<div class='circle'>
<div class='circle1'> </div>
<div class='circle2'> </div>
<div class='circle3'> </div>
<div class='center'></div>
</div>
</body>
</html>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】