Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).scroll(function() {
- // Write your code here
- var scroll = $(window).scrollTop();
- if (scroll >= 100) {
- $(".comm-view-navbar").addClass("afix-comm-nav");
- } else {
- $(".comm-view-navbar").removeClass("afix-comm-nav");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement