added support for animation to start where the user clicks