SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $win.scroll(function () {
  2.         var top = $win.scrollTop(), doc = $doc.scrollTop();
  3.  
  4.         if (top > $('#testID').offset().top-200 ) {
  5.             $('#forSizeID').addClass('open');
  6.         } else {
  7.             $('#forSizeID').removeClass('open');
  8.         }
  9.     });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top