My current project involves animating a single circle that scales, collides with two nearby circles, and then causes those circles to animate to specific positions. While everything works as expected, there is an issue where the two circles involved in the collision will continue to move slowly away from the main circle even after the animation has finished. I attempted to use .stop(true,true)
on the animate function for the middle circle (referred to as 'boss' in my code), but this only prevents the circle from growing without solving the movement issue of the other circles. Additionally, using .finish()
on the boss growth animation did not resolve the problem of the other circles continuing to move post-animation.
FIDDLE: http://jsfiddle.net/direlelephant/fMLKZ/2/
UPDATE: This issue persists regardless of whether the position of the divs is set to fixed or absolute.
UPDATE: I also experimented with using .clearQueue()
, .stop(true,false)
, and stop(true)
to address the ongoing movement problem. However, .clearQueue()
had no effect, while both .stop(true,false)
and stop(true)
prevented the middle circle from animating altogether.