I wrote a little animation script that fades a set of stripes from left to right. After all animations are complete a callback functions shoud run.
The script is here:
It works fine, but I want to do the same for a right-to-left animation:
As you can see the callback function is fired before animation ends :(
The only thing I changed is the delay()
. What am I doing wrong here? Why is "complete" running before all animations finish?