Forum Moderators: open
window.addEventListener('scroll', function() {
var botNav = document.getElementById("botnav");
botNav.style.opacity = 1;
setTimeout(function () {
botNav.style.removeProperty('opacity');
}, 5000);
});
This is what I have done (no Jquery) it shows a navigation menu at the bottom of the page for 5 secs each time the users scrolls:
var i = 0;
window.addEventListener('scroll', function() {
i++;
console.log(i);
});