Mostrar y esconder div al mover scroll con jquery



   var change= false;
    $(window).scroll(function(){
        window_y = $(window).scrollTop(); // VALOR QUE SE HA MOVIDO DEL SCROLL
        scroll_critical = parseInt($("#header").height()); // VALOR DE TU DIV
        if (window_y > scroll_critical) { // SI EL SCROLL HA SUPERADO EL ALTO DE TU DIV
            // ACA MUESTRAS EL OTRO DIV Y EL OCULTAS EL DIV QUE QUIERES
            $('#block-block-5,#block-superfish-2').slideDown(500);      
        } else {
            // ACA HACES TODO LO CONTRARIO
            $('#block-block-5,#block-superfish-2').slideUp(500);
        }
    });


Esta otra forma es cuando se mueve scroll muestra un div y cuando esta en pausa esconde el mismo div claro que puedes aplicarlo para muchas otras cosas

Mostrar  y esconder div al hacer scroll  con jquery y debounce


 //Esto en tu Scripts

$(window).scroll($.debounce( 250, true, function(){
//cuando haces scroll  
 $('#header').show();

} ) );
$(window).scroll($.debounce( 5000, function(){
//cuando esta en pausa
    $('#header').hide();

} ) );




Esta parte en un nuevo archivo js



(function(window,undefined){
  '$:nomunge';

  var $ = window.jQuery || window.Cowboy || ( window.Cowboy = {} ),
   
    jq_throttle;

 
  $.throttle = jq_throttle = function( delay, no_trailing, callback, debounce_mode ) {

    var timeout_id,

      last_exec = 0;

    if ( typeof no_trailing !== 'boolean' ) {
      debounce_mode = callback;
      callback = no_trailing;
      no_trailing = undefined;
    }

    function wrapper() {
      var that = this,
        elapsed = +new Date() - last_exec,
        args = arguments;
     

      function exec() {
        last_exec = +new Date();
        callback.apply( that, args );
      };

      function clear() {
        timeout_id = undefined;
      };
     
      if ( debounce_mode && !timeout_id ) {

        exec();
      }

      timeout_id && clearTimeout( timeout_id );
     
      if ( debounce_mode === undefined && elapsed > delay ) {

        exec();
       
      } else if ( no_trailing !== true ) {

        timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );
      }
    };
   
    if ( $.guid ) {
      wrapper.guid = callback.guid = callback.guid || $.guid++;
    }
    return wrapper;
  };
     $.debounce = function( delay, at_begin, callback ) {
    return callback === undefined
      ? jq_throttle( delay, at_begin, false )
      : jq_throttle( delay, callback, at_begin !== false );
  };
 
})(this);

  ------------------..............------------------