update the animation for the click event