While jQuery is running the .animate function, is it possible to interact with it? I have an animation that moves an image from bottom to top, but I need it to scale down when it reaches more than 70% of its distance traveled.
Imagine a bottleneck effect where the image needs to scale down as it gets closer to the top. But I'm not sure how to achieve this effect while the animation is running.
For example:
Action 1: Move 50% -- no problem
Action 2: Move 90% -- currently in progress -- but at 70%, scale the image down to 50%
EDIT
Thank you all for your suggestions, but unfortunately, I am still experiencing an offset issue between the circle and the water in my animation: