How can I report a visible : true
per time? I want it to be true only for a few seconds then return to false
.
How can I report a visible : true
per time? I want it to be true only for a few seconds then return to false
.
Does this work?
function esconde() {
document.getElementById("exemplo").style.visibility = "hidden";
}
setTimeout(esconde, 3000);
<div id="exemplo" style="visibility: visible">Vou sumir em 3 segundos</div>