Waiting until one animation finsishes before launcing another script
I have an animation set up where if the user clicks a certain anchor the animation plays forward and if they click any other link it plays the animation in reverse.
All other links that play the animation in reverse also call a "colorbox" script which opens a colorbox window. What is currently happening is that the colorbox window is opening before the reverse animation completes. I would like the reverse animation to complete first BEFORE the colorbox script runs.
Is there a way to tell my reverse animation to "wait" before calling any other scripts? The animation and colorbox scripts are completely separate from each other.
Thanks.