Tuesday, 15 August 2017

Show and hide menu navigation on window scroll with jquery

Here is the jquery script for Show and hide menu navigation on window scroll wih jquery :

jQuery(window).scroll(function() { 
if (jQuery(document).scrollTop() > 50) 
{
 jQuery('nav').addClass('shrink'); }
 else 

jQuery('nav').removeClass('shrink');
 }
 });

No comments:

Post a Comment

Google Map Filter Api Example

Here is Google Map Filter Api Example: