I have a CSS code that controls the timing of my slideshow with 3 images:
.slideshow li:child(1) span {
background-image: url(../../pic/bg1.jpg);
}
.slideshow li:child(2) span {
background-image: url(../../pic/bg2.jpg);
-webkit-animation-delay: 8s;
-moz-animation-delay: 8s;
-o-animation-delay: 8s;
-ms-animation-delay: 8s;
animation-delay: 8s;
}
.slideshow li:child(3) span {
background-image: url(../../pic/bg3.jpg);
-webkit-animation-delay: 16s;
-moz-animation-delay: 16s;
-o-animation-delay: 16s;
-ms-animation-delay: 16s;
animation-delay: 16s;
}
However, I am encountering an issue where the images overlap during transitions in the slideshow. This results in poor slideshow quality and sometimes it even stops sliding altogether. Do you have any suggestions on how I can improve my code to fix this problem?