0
I have a div with an img and I need that div has 3 different images, in a time of 2s each. I am using Html5 and css3
<img src="01.png" class="img1">
<img src="02.png" class="img-2">
<img src="03.png" class="img-3">
<img src="04.png" class="img4">
</div>
CSS:
.azul{width:300px height:250px bgc:blue}
Img-1{
position:relative;
Animation-name:primeiro;
Animation-interation-count-15;
Animation-diraction:alternate;
Animation-deplay:0s;
}
Img-2{
position:relative;
Opacity:0;
Animation-name:segunto;
Animation-duration:2s;
Animation-interation-count-15;
Animation-diraction:alternate;
Animation-deplay:4s;
}
Img-3{
position:relative;
Opacity:0;
Animation-name:terceiro;
Animation-duration:2s;
Animation-interation-count-15;
Animation-diraction:
alternate;
Animation-deplay:6s;
}
Img-4{
position:relative;
Opacity:0;
Animation-name:quarto;
Animation-duration:2s;
Animation-interation-count-15;
Animation-diraction:
alternate;
Animation-deplay:8s;
}
@keyframes primeiro{
100%{ opacity:0;
}
}
@keyframes segundo{
100%{ opacity:1;
}
}
@keyframes terceiro{
100%{ opacity:1;
}
}
@keyframes quarto{
100%{ opacity:1;
}
}