文章来源地址https://www.toymoban.com/news/detail-556132.html
<div class="fatherBreathIcon">
<div class="sonBreathIcon" style="background: rgba(188, 36, 36, 1); width: 10px; height: 10px; animation-delay: 0s;"></div>
<div class="sonBreathIcon" style="background: rgba(188, 36, 36, 0.8); width: 25px; height: 25px; animation-delay: 0.4s;"></div>
<div class="sonBreathIcon" style="background: rgba(188, 36, 36, 0.6); width: 40px; height: 40px; animation-delay: 0.8s;"></div>
<div class="sonBreathIcon" style="background: rgba(188, 36, 36, 0.4); width: 55px; height: 55px; animation-delay: 1.2s;"></div>
<div class="sonBreathIcon" style="background: rgba(188, 36, 36, 0.2); width: 70px; height: 70px; animation-delay: 1.6s;"></div>
</div>
.fatherBreathIcon {
width: 80px;
height: 80px;
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, 40%) rotateX(60deg);
}
.sonBreathIcon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
animation-name: iconBreathLight;
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-duration: 2s;
-webkit-user-drag: none;
filter: none;
opacity: 0;
}
@keyframes iconBreathLight {
0% {
opacity: 0;
}
10% {
opacity: 0.2;
}
20% {
opacity: 0.4;
}
30% {
opacity: 0.6;
}
40% {
opacity: 0.8;
}
50% {
opacity: 1;
}
60% {
opacity: 0.8;
}
70% {
opacity: 0.6;
}
80% {
opacity: 0.4;
}
90% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
文章来源:https://www.toymoban.com/news/detail-556132.html
到了这里,关于呼吸灯效果css的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!