【发布时间】:2018-10-25 20:50:42
【问题描述】:
我有一个椭圆形,在椭圆形里面,我有一条条,我需要它来产生波浪
我做了这个:
.strip {
content: "";
position: relative;
background: #4286f4;
z-index: 1;
width: 100%;
height: 100%;
bottom: 0%;
animation: wipe 8s cubic-bezier(0.9, 0.7, 0.8, 0.8) forwards;
animation-iteration-count: infinite;
}
@keyframes wipe {
from {
bottom: 0%;
}
to {
bottom: 100%;
}
}
.oval {
position: absolute;
background: #343434;
-moz-border-radius: 0 50% / 0 100%;
-webkit-border-radius: 0 50% / 0 100%;
border-radius: 150px;
height: 100px;
width: 80%;
overflow: hidden;
}
<div class="oval">
<div class="strip"></div>
</div>
我怎样才能使我的地带具有无限波动画?
【问题讨论】:
-
你的意思是蓝条会从底部滑入视野,从顶部滑出,无限循环?
-
几个不同的想法!我想我们不清楚你的目标是什么¯\_(ツ)_/¯
-
@showdev 是的,哈哈:p 我想到了最有趣的想法:p
-
@TemaniAfif 我喜欢它!实际波形。我没有考虑到这一点。
-
抱歉,我还是不明白你所说的“波浪效应”是什么意思。