jQuery - Disable Click until all chained animations are complete

后端 未结 6 1086
无人共我
无人共我 2020-12-05 00:27

Question

The solution below is intended to slide down the groupDiv displaying div1 and enough space for

6条回答
  •  孤街浪徒
    2020-12-05 01:00

    you can put this first thing inside the click event

        $(element).css({ "pointer-events":"none"}); 
        
    , and this in the callback function of the animation
        $(element).css({ "pointer-events":"auto"});
        

提交回复
热议问题