お元気ですか..私はCss3キーフレームのこの素晴らしい世界で自分自身を訓練してきました。100% css で作成されたスライダーに関するいくつかのアプローチを見てきましたが、別のものを探しています。私がやろうとしているのは、すべての写真を同時に移動するスライダーです (それらはすべてユーザーに表示されます)。移動中に、最初の写真が見えなくなるまでに (左側)。 、それは右から来るはずで、他の写真と同じです..そしてそれは地球が止まるまで:D. 私がやろうとしていることは理解できますか?しかし、私はそれを行う方法を理解できません。手を貸してください!ご協力いただきありがとうございます。ここにいくつかのコードがあります:
<div id="wrapper">
<div id="slideshow">
<figure class="teste">
<img src="images/daya1.jpg" alt="">
</figure>
<figure class="teste">
<img src="images/daya2.jpg" alt="Profile of a Red kite">
</figure>
<figure class="teste3">
<img src="images/daya3.jpg" alt="Profile of a Red kite">
</figure>
<figure class="test4">
<img src="images/daya4.jpg" alt="Profile of a Red kite">
</figure>
</div>
そして、ここにいくつかの他のコードがあります
#wrapper{
margin: auto;
background-color: black;
width: 1100px;
}
#slideshow {
margin-left: 20px;
/*overflow: hidden;*/
position: relative;
}
#slideshow figure{
float: left;
position: relative;
}
#slideshow figure.teste{
-webkit-animation-name:sliderleft,slidertop,sliderright,sliderbottom;
-webkit-animation-duration:5s, 5s,5s,5s;
-webkit-animation-delay:0s,4s,9s,17s;
/*-webkit-animation-fill-mode:forwards;*/
}
@-webkit-keyframes sliderleft{
from {left: 0px;}
to {left: -300px;}
}
@-webkit-keyframes slidertop{
0% {top: 0px;}
100% {top: 200px;}
}
@-webkit-keyframes sliderright{
from { left: 0px;}
to {left: 750px;}
}
@-webkit-keyframes sliderbottom{
from { bottom: 0px;}
to {bottom: 750px;}
}