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:
$(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
Post a Comment