【发布时间】:2021-02-24 02:45:48
【问题描述】:
I need to create this animation 1:https://i.stack.imgur.com/FVvJQ.gif
原始动画在上面的链接,代码必须是这样的。 你能帮我解决这个问题吗?
我无法制作正确的动画,这是我的完整代码。
这是我当前的代码。 (.................................................. ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ....)
body {
background-color: #01143B;
}
@keyframes pulse {
0% {
transform: scale(0.9);
opacity: 0.8;
}
25% {
opacity: .4;
}
50% {
transform: scale(1.4);
opacity: 0.8;
}
}
div {
background-color: #d4d4d4;
border-radius: 50%;
position: absolute;
margin: auto auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 200px;
height: 200px;
}
div:nth-child(1) {
animation: pulse 3s infinite;
}
div:nth-child(2) {
animation: pulse 4s infinite .5s;
}
div:nth-child(3) {
animation: pulse 5s infinite .7s;
}
img {
position: absolute;
margin-left: 70px;
margin-top: 65px;
text-align: center;
font-size: 14px;
line-height: 80px;
width: 70px;
height: 70px;
}
.circle {
background-color: white;
}
<div></div>
<div></div>
<div></div>
<div class="circle"><img src="play-button-arrowhead.png"></div>
【问题讨论】: