JS & CSS Help On Scroll

Out of context: Reply #3

  • Started
  • Last post
  • 9 Responses
  • sted0

    and if you add this to the (document).ready(function() it will take care of the pages loaded with larger scroll position than the viewports top secion (anchor links etc.).

    if(positionScroll>vH && !overlay){
    overlay=true;
    jQuery('.nk-awb-wrap .overlay').fadeIn();
    }else if(positionScroll<vH && overlay){
    overlay=false;
    jQuery('.nk-awb-wrap .overlay').fadeOut();
    }

View thread