Categories
How can I make the menu disappear when scrolling?
How can I make the menu pinned to the top disappear when scrolling down (at the anchor), and appear when scrolling up again (above the anchor)?
Answer the question
In order to leave comments, you need to log in
$(window).bind('scroll', function () { if ($(window).scrollTop() > 50) { $('.fixed-scroll').addClass('scrolled'); } else { $('.fixed-scroll').removeClass('scrolled'); } });
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question