jQuery animate() - multiple selectors and variables, a unique animate() call

Posted by ozke on Stack Overflow See other posts from Stack Overflow or by ozke
Published on 2010-05-31T17:31:25Z Indexed on 2010/05/31 17:33 UTC
Read the original article Hit count: 507

Hi guys,

I am resizing several divs in a loop with animate() in jQuery. At the same time I am moving (left property, no resizing at all) the div where they are contained.

Problem is, despite they have same duration the resize animate calls finish before the move call. They are out of sync. Is there any way of creating a list of selectors and its properties and then run a unique animate() call?

Or, is there any alternative to make multiple animations happen at the same time?

I've seen there's a property called step that happens every time animate loop happens but, again, each animate() call has it's own step call.

Thanks in advance :)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors