jQuery scroll() detect when user stops scrolling

前端 未结 13 1457
情歌与酒
情歌与酒 2020-11-22 02:17

Ok with this..

$(window).scroll(function()
{
    $(\'.slides_layover\').removeClass(\'showing_layover\');
    $(\'#slides_effect\').show();
});
相关标签:
13条回答
  • 2020-11-22 03:02

    This should work:

    var Timer;
    $('.Scroll_Table_Div').on("scroll",function() 
    {
        // do somethings
    
        clearTimeout(Timer);
        Timer = setTimeout(function()
        {
            console.log('scrolling is stop');
        },50);
    });
    
    0 讨论(0)
提交回复
热议问题