javascript - Single queue for jQuery animate() elements -


by default jquery queue created animate() done per element, i'm wondering if there way create single queue animations done animate()? i.e. 1 animation should occuring @ time

you own custom queue on 1 element using queue:

http://jsfiddle.net/jrawx/2/

$(function(){      $('#myqueue')         .queue('myqueue',function(next){             $('#t1').animate({left: 100},                              {duration: 1000,                               queue: false,                              complete: next                             })         })         .queue('myqueue',function(next){             $('#t2').animate({left: 100},                              {duration:1000,                               queue:false,                              complete: next})         })         /* etc. */         .dequeue('myqueue') }) 

Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -