0
执行此操作后,背景变化太快,也有点晃动。帮助我减缓这种背景变化,并停止背景动摇。CSS3动画太快,背景图像抖动一点点
HTML
<!-- Banner -->
<section id="banner">
<div class="inner">
<h2>Enhancing Your <br />Ways</h2>
<p>A free platform for schedualing</p>
</div>
</section>
CSS(动画延误不工作)
<!--The animation-delays not working-->
@keyframes changebackground {
0% {
background-image: url("../Images/4.jpg");
animation-delay:5s;
}
25% {
background-image: url("../Images/1.jpg") ;
animation-delay:5s;
}
50% {
background-image: url("../Images/2.jpg") ;
animation-delay:5s;
}
100% {
background-image: url("../Images/3.jpg");
animation-delay:5s;
}
}
#banner {
margin-top:2.9em;
background-image: url("../Images/4.jpg");
background-position:center;
background-repeat:no-repeat;
padding:22em 0em 8em 0em;
background-size:cover;
width:100%;
float:left;
animation-name:changebackground;
animation-iteration-count:infinite;
animation-duration:2s;
animation-delay:5s;
}
没有问号发现! – manetsus
答案是否解决了您的问题?如果是,请考虑将其标记为已接受(单击答案附近的投票按钮下方的空白刻度标记)。这就是堆栈溢出解决问题的方式。如果它没有解决你的问题[编辑]更多的信息到问题中。 – Harry