I'm trying to manipulate an object using a jQuery effect chain. Some of the effects in the chain depend on the current position of the object. But it seems the entire effect chain is queued prior to execution, so any function calls to get current positioning return incorrect values.
Two alternatives to the standard chaining I'm using (.fadein().fadeOut().animate()) would be to use callbacks after the completion of each effect to start the next. Or I could look at using a jQuery queue.
Am I correct in assuming that if I code the callback, such as .fadeIn(500,startNextEffect) that the contents of startNextEffect will not be evaluated when the fadeIn effect is queued? And is there something easier I'm missing?
Thank-you, Chris