Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //On scroll addClass and removeClass
- $(window).scroll(function() {
- var scroll = $(window).scrollTop();
- if (scroll > 150) {
- $(".ic-bottom-header").addClass("header-fixed");
- } else {
- $(".ic-bottom-header").removeClass("header-fixed");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement