fixed animation to stop on click