1
I’ve been trying to find the problem with you for a long time (note: I’m new to this area), it turns out that when the background changes the image, in a short interval it’s like a flash, and as I changed from jquery to css, because I wasn’t able to smooth the slider effect, This flash is pissing me off. And the interesting thing that only happens in the first loop, then it continues to exchange images normally. Anyway here is the code, I hope you help me.
.body{
overflow-x: hidden;
background-image: url("imagens/fundo.png");
background-repeat: no-repeat;
background-size: cover;
animation: linear;
animation-name: body;
animation-duration: 30s;
animation-iteration-count: infinite;
animation-delay: .1s;
}`
`@keyframes body{
0% {background-image: url("imagens/slide.jpg"); background-size: 100% 100%;}
20% {background-image: url("imagens/slide1.jpg"); background-size: 100% 100%;}
40% {background-image: url("imagens/slide2.jpg"); background-size: 100% 100%;}
60% {background-image: url("imagens/slide3.jpg"); background-size: 100% 100%;}
80% {background-image: url("imagens/slide4.jpg"); background-size: 100% 100%;}
100%{background-image: url("imagens/slide5.jpg"); background-size: 100% 100%;}
}