-2
I have the following code, but the problem is that it should disappear altogether, but after a while it comes back and becomes static.
I wish it were gone, that the element was removed, as I can do?
@keyframes fadeOut {
0% {
opacity:1;
}
100% {
opacity:0;
}
}
@-moz-keyframes fadeOut {
0% {
opacity:1;
}
100% {
opacity:0;
}
}
@-webkit-keyframes fadeOut {
0% {
opacity:1;
}
100% {
opacity:0;
}
}
@-o-keyframes fadeOut {
0% {
opacity:1;
}
100% {
opacity:0;
}
}
.afo {
width: 270px;
height: 30px;
padding: 20px 0;
color: black;
background: lightblue;
font-weight: bold;
border-radius: 5px;
animation: fadeOut ease 5s;
-webkit-animation: fadeOut ease 5s;
-moz-animation: fadeOut ease 5s;
-o-animation: fadeOut ease 5s;
-ms-animation: fadeOut ease 5s;
}
<span class="alert_danger afo">
<label>Usuário ou senha inválidos.</label>
</span>
You mean when the animation is over, the element
span
be removed from the DOM or just make it transparent (invisible)?– Cmte Cardeal
Has to be removed
– Braz Brz