[jQuery] What is the best way to queue several effects?

[jQuery] What is the best way to queue several effects?


Hi there, JQuery does a great job of queuing effects on the same element(s)
but I'm not sure how to queue effects on a set of many different ones.
What is the best way to run the same fx on many items in sequence, one after
the other?
Using callbacks is fine for a couple of effects but tedious if you have many
elements to animate one after the other.
Tried:
- Calling .queue() on a set of elements, passing a function such as
function(){ $(this).show() }
- Using a function to do the fx, decrementing a counter and calling itself
recursively using arguments.callee(n-1)
This has been raised in quite a few threads but I've not found an answer
other than using callbacks. In the absence of an available solution I might
have to resort using .each() to set a staggered timeout for each item in the
set.
Many thanks
George
--
View this message in context: http://www.nabble.com/What-is-the-best-way-to-queue-several-effects--tf2455389.html#a6843798
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/