jQuery - remove element upon scrolling

0 votes
173 views
added Nov 14, 2018 in CSS by LC Marshal Captain (25,770 points)
$(window).scroll(function() {
  var adBanner = $('.ad-banner');
  if(adBanner.hasClass('slide-in')){
    adBanner.removeClass('slide-in');
  }
});

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...