Stopping jQuery from doing its thing?

前端 未结 5 1744
渐次进展
渐次进展 2021-01-14 19:52

I have this code.

$(document).ready(function() {
$(\'#box\').hide();
$(window).bind(\'scroll\', function(){
    if($(this).scrollTop() > 200) {
        $(         


        
5条回答
  •  孤街浪徒
    2021-01-14 20:58

    Use the stopdocs function

    You simply need to call $('#box').stop(true,true).fadeIn(300); and $('#box').stop(true,true).fadeOut(300); respectively

提交回复
热议问题