Colin

Posted on Friday, January 29, 2010

jQuery Animation: Queue, Stop()

When ".stop()" is used, all specified elements will stop their animation immediately and allow the next queued up animation to execute.

$('li').stop().animate({...code....});

By inserting "queue : false", we can stop the animation from queuing up in the animation buffer.

$('li').animate({...code...},{queue:false},1000);

To combine usage for both methods,

$('li').stop(true).animate({...code...});


Reference Website:
http://tutsvalley.com/tutorials/making-a-cool-thumbnail-effect-with-zoom-and-sliding-captions
http://www.netiblog.com/programming/jquery/turning-off-the-jquery-animation-queue

Labels: , , ,

1 Comments:

Blogger Tech Cloud Ltd said...

Wow, very informative tutorials. This is exactly what I was looking for. As I’m working with different image post production platforms. So, I think this tutorial will help in my editing work as well. Thanks for sharing this. Please keep sharing more. I’ll be waiting for your next post. image post production

December 6, 2021 at 1:00 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home