How to stop an animation queue in jQuery?

后端 未结 1 1754
清歌不尽
清歌不尽 2020-12-12 06:10

I have animated footsteps walking across the browser window. I have a function geckoWalk() that calculates the position of the footsteps and queues the animation. I have a l

相关标签:
1条回答
  • 2020-12-12 06:33

    .stop() and .clearQueue() on the animated elements.

    For example:

    $('#geckoprint_r').stop().clearQueue();
    

    See:

    http://api.jquery.com/stop/

    http://api.jquery.com/clearQueue/

    0 讨论(0)
提交回复
热议问题