JavaScript:
<script>
var lastScrollTop = 0;
window.addEventListener("scroll", function(){
var st = window.pageYOffset || document.documentElement.scrollTop;
if (st > lastScrollTop){
closeNav();
} else {
delay(3000);
openNav();
}
lastScrollTop = st <= 0 ? 0 : st; // For Mobile or negative scrolling
}, false);
</script>
Hello friends: This is related to webpage overlay window. openNav() and closeNav opens/closes the ovelay window.
With the above code with scrolling, the window opens/Closes. I added delay(3000); to delay the opening of the window. With that addition,
it doesn't even open now.
1. I want to accomplish the opening a with a bit delay in case of scrolling.
2. Is it possible to add the transition delay further here too
Thanks
Anura