Thanks for your response.

Yes I have used that before, but I need to know how to add a callback
function which is called after a set of animations are completed.

If I have an array of dom elements which all need the same animation applied
to them,
how can I tell when all the animations are complete?

Thanks,
Cam

On Thu, Jan 1, 2009 at 8:19 PM, brian <bally.z...@gmail.com> wrote:

>
> On Wed, Dec 31, 2008 at 11:26 PM, Cam Spiers <camspi...@gmail.com> wrote:
> > Hey,
> >
> > function closeMainPanels(){
> >     jQuery("div.mainLiner div.panel").each(function(){
> >         jQuery(this).slideUp(750);
> >     });
> > }
> >
> > How can I tell when all panels have finished animation?
> >
> > As I need to call another function when all have finished.
> >
>
> slideUp accepts a callback function you could use
>
> http://docs.jquery.com/Effects/slideUp
>

Reply via email to