Stopping specific jQuery animations

前端 未结 5 687
一整个雨季
一整个雨季 2020-12-10 05:33

I have multiple animations on a single object, and I need to stop a specific animation rather than all of them. It doesn\'t look like the .stop() method can do this.

<
5条回答
  •  清歌不尽
    2020-12-10 05:55

    Instead of one animation, can you break it up into several smaller animations (i.e. animate opacity from 0-20%, then animate from 20-40%, then 40-60%, etc) and instead of .stop()-ing the animation, you just dont start it up again?

提交回复
热议问题