I have the following div called "load". I would like to keep it hidden when you refresh the site. However, this div should be showed every time you land on the page (first time or not first time).
Is it possible? How?
Thanks
document.onreadystatechange = function() {
var state = document.readyState
if (state == 'complete') {
setTimeout(function() {
document.getElementById('interactive');
document.getElementById('load').style.visibility = "hidden";
}, 2500);
}
}
#load {
width: 100%;
height: 100%;
position: fixed;
z-index: 2000;
background-color: #29d4e6;
top: 0;
-webkit-animation-delay: 2.3s;
-moz-animation-delay: 2.3s;
-o-animation-delay: 2.3s;
animation-delay: 2.3s;
}
<html>
<head>
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css" rel="stylesheet">
</head>
<body>
<div class="animated fadeOut" id="load"></div>
<div> Hello there! </div>
</body>
</html>