In the image below, at position 4 (marked by yellow circle) from the left where picture 6 is displayed, I want a cross-fade (fade-in/fade-out) gallery of images to take place.
Specifically at position 4, I am looking for a cross-fade (fade-in/fade-out) effect between Picture 4, Picture 5, and Picture 6.
https://i.sstatic.net/cHLTF.png
https://jsfiddle.net/k0vzthne/embedded/result
I have implemented CSS codes in my project but currently not witnessing the desired cross-fade effect at position 4. Here are the relevant CSS snippets:
.featured-block a:nth-of-type(4), .featured-block a:nth-of-type(5), .featured-block a:nth-of-type(6) {
position: absolute;
right: 568px;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-duration: 12s;
opacity: 0;
}
.featured-block a:nth-of-type(4) {
animation-delay: 0s;
}
.featured-block a:nth-of-type(5) {
animation-delay: 4s;
}
.featured-block a:nth-of-type(6) {
animation-delay: 8s;
}
@keyframes cf4FadeInOut {
0% {opacity: 0;}
20% {opacity: 1;z-index: 999;}
33% {opacity: 1;}
53% {opacity: 0;z-index: 1;}
100% {opacity: 0;}
}
Issue at Hand:
I am seeking advice on what modifications should be made in the fiddle so that the desired fade-in/fade-out effect can occur with the 3 specified images at position 4.