Difference between revisions of "Template:GlasgowNavbar"
Line 83: | Line 83: | ||
} | } | ||
− | . | + | .dimmer { |
opacity:0.3; | opacity:0.3; | ||
} | } | ||
− | . | + | .dimmer:hover { |
opacity:1; | opacity:1; | ||
} | } | ||
Line 163: | Line 163: | ||
$(window).scroll(function() { | $(window).scroll(function() { | ||
if ($(this).scrollTop() > 50) { | if ($(this).scrollTop() > 50) { | ||
− | $('nav').addClass(" | + | $('nav').addClass("dimmer"); |
} | } | ||
else { | else { | ||
− | $('nav').removeClass(" | + | $('nav').removeClass("dimmer"); |
} | } | ||
}); | }); |
Revision as of 13:27, 2 September 2015