我有下面的圖片幻燈片,我的問題是,本文下面的文章是關於這篇文章,並坐在它上面,我哪裏錯了?幻燈片本身工作正常,所以沒有問題。文章來自另一篇文章?
HTML:
<article class="c-all b-all a-all mainImageArticle fade-in one">
<section class="image-slider">
<div class="fadein">
<img id="f3" src="landing_image.jpg" alt="Image"/>
<img id="f2" src="landing_image.jpg" alt="Image"/>
<img id="f1" src="landing_image.jpg" alt="Image"/>
</div>
</section>
</article>
CSS:
.mainImageArticle {
position: relative;
}
.fadein img {
position: absolute;
top: 0;
-webkit-animation-name: fade;
-webkit-animation-iteration-count: infinite;
-webkit-animation-duration: 6s;
animation-name: fade;
animation-iteration-count: infinite;
animation-duration: 6s;
}
@-webkit-keyframes fade {
0% {opacity: 0;}
20% {opacity: 1;}
33% {opacity: 1;}
53% {opacity: 0;}
100% {opacity: 0;}
}
@keyframes fade {
0% {opacity: 0;}
20% {opacity: 1;}
33% {opacity: 1;}
53% {opacity: 0;}
100% {opacity: 0;}
}
#f2 {
-webkit-animation-delay: -4s;
animation-delay: -4s;
}
#f3 {
-webkit-animation-delay: -2s;
animation-delay: -2s;
}