Waves! I'm having trouble using this rule because it is not recognizing the first line, so it does not execute the animation. I do not know what to do anymore, because even if I delete the line, the bottom is no longer recognized. What I realized is when you have a bracket "{" open and I put the first percentage and I open another bracket "{" to set the effect, I close the bracket "}" and I move the second percentage to another effect, that first line is not recognized as a command, only the second. That is, it is not accepting two brackets opened in the same rule. {}}
Please, if someone has already gone through this, I would be very grateful for the help. Thank you in advance.
PS: The photo I kept to see the issue of accepting the code by the color characteristics of the editors, which in the case is not blue as it should.
HTML CODE Slide Show
<style>*{padding: 0; margin:0;}</style>
Slider Test
<section class="galeria">
<img class="foto" src="imagem 1.jpg" />
<img class="foto" src="imagem 2.jpg" />
<img class="foto" src="imagem 3.jpg" />
</section>
CSS CODE
section.galeria {
margin: 200px auto;
width: 480px;
position: relative;
overflow: hidden;
}
section.foto {
position: absolute;
opacity: 0;
animation-name: animacao;
}
@keyframes animacao {
25% {
opacity: 1;
transform: scale(1.1,1.1);
}
50% {
opacity: 0;
}
}
===================================================== ===========