jQuery animation in sequence -


I have some div elements that I want to apply to an effect dynamically in sequence. These divs are loaded with an array, so I can not manually create an animation like this

  $ (Segment) .mate ({opacity: 0}, 100, function () {$ (Segment) Chetan ({Opacity: 1}, 100);});   

Any problem how to solve this problem? Someone else has suggested that I use the jQuery queue but it seems that there is only one line for each element.

I have not used the Jquery queue so that everyone mentioned so only an array and a timer Used. Diamond Bella:

  $ (document) .ready (function () {var __THEDIVS = []; $ ('div'). Each (function () {__THEDIVS.push ($ (this }};}} Function animate () {$ elem = __THEDIVS.pop (); $ elem.animate ({'height': '100px'}, 200); if (__THEDIVS.length) {setTimeout (Chetan, 500) 


Comments