Show hidden menu when mouse at top of screen

if (!isMobile.any()) { $body.on("mousemove",function(e) { var pageY = e.pageY || e.clientY, scrollTop = $window.scrollTop(), trigger_area = pageY - scrollTop, trigger_threshold = 75; if (trigger_area <= trigger_threshold) { $header.removeClass('nav-hidden').addClass('nav-visible'); } }); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.