Yashnaverma (Talk | contribs) |
Yashnaverma (Talk | contribs) |
||
Line 6: | Line 6: | ||
$(window).scroll(function() { | $(window).scroll(function() { | ||
// checks if window is scrolled more than 500px, adds/removes solid class | // checks if window is scrolled more than 500px, adds/removes solid class | ||
− | if($(this).scrollTop() > | + | if($(this).scrollTop() > 100) { |
$('.navbar').addClass('solid'); | $('.navbar').addClass('solid'); | ||
} else { | } else { |
Revision as of 15:52, 10 July 2018