1
I made a simple animation with keyframe and when running it does not stop at 100% and yes back at the beginning of my CSS animation, see:
.mostramenu
{
animation: desce 2s;
-webkit-animation: desce 2s;
}
@keyframes desce {
0% {
margin-top: -70px;
}
100% {
margin-top: 1px;
}
}
What could be wrong? I have tested in several browsers and also adjusting -webkit-
I also tested FROM - TO
@keyframes desce {
from {
margin-top: -70px;
}
to {
margin-top: 1px;
}
}
Da para melhorar o exemplo ? put an html too
– Gabriel Rodrigues
It’s just that I made an animation with JS, when the scrooll goes to a point it applies CSS with this animation, but the animation goes from the key 100% it doesn’t stop at 1px of margin-top back to the -70px; basically HTML is something
<div class="mostramenu"><nav>...</nav></div>
– Josias Viskoo
There is a tool on the site that is possible to put your html,css and js code so that it runs and we can see.. click edit and take a look at the editing tools.
– Silvio Andorinha