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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -