Mousemove event on fullpage carousel
Hello All,
I have i mousemove event to show nav bar on a full page size carousel. How can i prevent the event to be triggered each time the slide changes. Thanks
This is the script:
var timer;
$("html").on("mousemove", function () {
$("nav").css('visibility', 'visible');
try {
clearTimeout(timer);
} catch (e) {}
timer = setTimeout(function () {
$("nav").css('visibility', 'hidden');
}, 1200);
});