Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var articleInfo = $('.article-info');
- var articleInfoPos = $(articleInfo).offset().top;
- $(window).scroll(function () {
- var windowScroll = $(window).scrollTop();
- if (windowScroll > articleInfoPos) {
- $('.menu-catalog').removeClass("fixed");
- } else {
- $('.menu-catalog').addClass("fixed");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement