You should be able to do something like.... function fadeInitializer() { $("img").fadeIn("slow",function(){ $("#text1").fadeIn("slow",function(){ $("#text2").fadeIn("slow"); }); }) }
I could be wrong, I didn't test this code. If that doesn't work instead you could probably pull each of those fades out and in the callback just call it by its function name. As for your fadeout... as an example... you can give the 2 text elements a class name and then just call them in your image fadeOut callback. ------------------------------------------------- Brandon Ryall Software Developer eMaint Enterprises LLC 438 N. Elmwood Road, Suite 201 Marlton, NJ 08053 P 856-810-2700 x7180 F 253-323-6353 On Thu, Oct 15, 2009 at 11:26 AM, Tony <t...@mediasolutions.org.uk> wrote: > Hello > Being a newbie to JQuery, especially callbacks, I just wanted to pick you > brains with a task I have. I'll be working on this but I wanted your > opinions. > > I have three <DIV>s, one image and two pieces of text, that I need to > animate. I've got them to fade in and out without callbacks but I need them > to be a bit more flash (actually a Flash file is what I am re-creating). > I need the image, then the first bit of text, then the second bit, to fade > in but only AFTER the last one is finished. Simple, eh. > Okay, this is a bit more difficult. The image must fade out, followed by > both bits of text together. > > Ta. > > > Tony Barrett > > GERA Media Solutions > Westwood Business Centre > 69 Aberdalgie Road > Glasgow G34 9HJ > > t: 0141 781 4187 > f: 0141 781 2010 > e: t...@mediasolutions.org.uk > w: www.mediasolutions.org.uk > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---