1
Good afternoon, in a site I’m creating has this image as "background image" in a div.
I’m trying to make some of the windows in the buildings blink, to have a nice effect, animation in the buildings. For this, I did in CSS:
#divprediocima {
background-image: url("../img/prediocima.png");
width: 972px;
height: 276px;
margin: auto;
margin-top: -40px;
animation-name: prediocima;
animation-duration: 20s;
animation-delay: 4s;
animation-iteration-count: infinite;
}
@keyframes prediocima {
0% {background-image: url("../img/prediocima.png");}
30% {background-image: url("../img/prediocima1.png");}
70% {background-image: url("../img/prediocima2.png");}
90% {background-image: url("../img/prediocima.png");}
100% {background-image: url("../img/fundo.png");}
}
As I have this photo in vector, I’ve been taking some windows and saving like other png photos, ie I have 3 png files some with more windows and others less windows.
Turns out, is changing the background with a fade out effect, then when it will change the background, the window fades slowly, getting clear as even the photo shows in some windows... This is not getting good.
How do I make the background image change without having any effect? Does anyone know?
worked, thanks!
– Lukas Monteiro