[jQuery] Re: animating multiple items at the same time

2007-10-10 Thread Joan Piedra
Can't you just do an each loop? $('.box').each(function(){ $(this).animate({ width: 400 }, 'slow'); }); On 10/9/07, petrozza <[EMAIL PROTECTED]> wrote: > > > Hi! I am relatively new to jQuery and recently ran into the following > problem. Let's say I have a few DIVs of the same dimensions on

[jQuery] Re: animating multiple items at the same time

2007-10-09 Thread petrozza
I did that but there's still a noticeable delay between animations On Oct 9, 10:28 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Simplest way might be to assign a class to each of them. This way you can > reference them individually by ID or as part of a group by classname. Or put > them a

[jQuery] Re: animating multiple items at the same time

2007-10-09 Thread petrozza
Ok, but how do I animate multiple all items with the same class instantaneously? Thanks On Oct 9, 10:28 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Simplest way might be to assign a class to each of them. This way you can > reference them individually by ID or as part of a group by classnam

[jQuery] Re: animating multiple items at the same time

2007-10-09 Thread petrozza
I tried that but there's still a slight delay between elements On Oct 9, 10:28 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Simplest way might be to assign a class to each of them. This way you can > reference them individually by ID or as part of a group by classname. Or put > them all i

[jQuery] Re: animating multiple items at the same time

2007-10-09 Thread petrozza
Ok. But what code do I use to animate a group of items at the same time? Let's say I have 5 DIVs with the same class called 'box'. How do I animate all of these items instantaneously? Thanks On Oct 9, 10:28 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Simplest way might be to assign a class t

[jQuery] Re: animating multiple items at the same time

2007-10-09 Thread Andy Matthews
Simplest way might be to assign a class to each of them. This way you can reference them individually by ID or as part of a group by classname. Or put them all in a parent container and reference them with child selectors: $('#container div') andy -Original Message- From: jquery-en@goo