1

I am new to jQuery and I need to make my bootstrap navbar on scroll down have a background color and on scroll top be transparent.

I Know how to use the .scroll

$(document).ready(function(){
      $(document).scroll(function(){
         $(".navbar").css("background-color","#e74c3c"); 
      });
      });

But I need to use scroll up and down option , please help. Thanks !

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
user3316092
  • 43
  • 1
  • 8
  • Look at this. http://stackoverflow.com/questions/3074802/how-to-check-if-webpage-page-is-scrolled – monkee Oct 04 '15 at 09:11

0 Answers0