0

I need to remove existing class only when scroll is up.

I have tried is as below:

$(window).scroll(function() {    
   var scroll = $(window).scrollTop();
      if (scroll >= 100) {
         // removeClass
      }
})

...but only works when scroll is down.

Any suggestion in this regard? Thanks

Srishti Sinha
  • 618
  • 1
  • 11
  • 23

0 Answers0