Difference between revisions of "Template:William and Mary/NAV BAR"

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() > 500) {  
+
           if($(this).scrollTop() > 100) {  
 
               $('.navbar').addClass('solid');
 
               $('.navbar').addClass('solid');
 
           } else {
 
           } else {

Revision as of 15:52, 10 July 2018