body > main > figure {
    position: relative;
    background: rgb(252, 244, 225);
}

body > main > figure > img {
    position: absolute;
    object-fit: cover;
    opacity: 0;
    animation: anim 15s infinite;
}

@keyframes anim {
    0% {opacity: 0}
    2% {opacity: 1}
    31% {opacity: 1}
    33% {opacity: 0}
    100% {opacity: 0}
}

body > main > figure > img:nth-of-type(1) {
    animation-delay: 0s;
}

body > main > figure > img:nth-of-type(2) {
    animation-delay: 5s;
}

body > main > figure > img:nth-of-type(3) {
    animation-delay: 10s;
}