gpt4 book ai didi

css - 向下箭头周围具有波纹效果的多个环

转载 作者:太空宇宙 更新时间:2023-11-04 02:06:25 24 4
gpt4 key购买 nike

我已经能够用一个圆环围绕向下箭头创建波纹效果。

动画: https://rimildeyjsr.github.io/St.Anthony-Website/

我想扩展动画以包含三个具有相似动画的圆环。实现动画的最简单方法是什么?

.down-arrow {
display: none;
position: absolute;
left: 0;
right: 0;
margin: 0 auto;
top: 81.5%;
z-index: 5;
border-radius: 50%;
height: 80px;
width: 80px;
}
.ring {
border: 2.5px solid white;
-webkit-border-radius: 50%;
height: 80px;
width: 80px;
position: absolute;
left: 0;
right: 0;
top: 81%;
z-index: 5;
margin: 0 auto;
-webkit-animation: pulsate 2s ease-out;
-webkit-animation-iteration-count: infinite;
-webkit-animation-delay: 2s;
opacity: 0.0;
}
@-webkit-keyframes pulsate {
0% {
-webkit-transform: scale(0, 0);
opacity: 1;
}
100% {
-webkit-transform: scale(1.2, 1.2);
opacity: 0;
}
}
<img src="images/down-arrow.png" alt="down arrow for navigation" class="img-responsive down-arrow-page-one animated
slideInDown">
<div class="ring"></div>

最佳答案

这里是一个变体的解决方案:

body {
background-color: #668822;
}
.down-arrow {
display: none;
position: absolute;
left: 0;
right: 0;
margin: 0 auto;
top: 81.5%;
z-index: 5;
border-radius: 50%;
height: 80px;
width: 80px;
}
.ring {
border: 2.5px solid white;
-webkit-border-radius: 50%;
height: 80px;
width: 80px;
position: absolute;
left: 0;
right: 0;
top: 200px;
z-index: 5;
margin: 0 auto;
-webkit-animation: pulsate 2s ease-out;
-webkit-animation-iteration-count: infinite;
-webkit-animation-delay: 2s;
opacity: 0.0;
}
.ring2 {
-webkit-animation-delay: 1.7s;
}
.ring3 {
-webkit-animation-delay: 1.4s;
}
@-webkit-keyframes pulsate {
0% {
-webkit-transform: scale(0, 0);
opacity: 1;
}
100% {
-webkit-transform: scale(1.2, 1.2);
opacity: 0;
}
}
<img src="images/down-arrow.png" alt="down arrow for navigation" class="img-responsive down-arrow-page-one animated
slideInDown">
<div class="ring"></div><div class="ring ring2"></div><div class="ring ring3"></div>

此外,您还可以延迟出现圆圈。

关于css - 向下箭头周围具有波纹效果的多个环,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40651247/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com