SHARE
TWEET

Untitled

a guest Apr 21st, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(window).scroll(function() {
  2.         // Write your code here
  3.        
  4.  
  5.         var scroll = $(window).scrollTop();
  6.         if (scroll >= 100) {
  7.             $(".comm-view-navbar").addClass("afix-comm-nav");
  8.         } else {
  9.             $(".comm-view-navbar").removeClass("afix-comm-nav");
  10.         }
  11.  
  12.        
  13.     });
RAW Paste Data
Top