Disable animations when text or image is clicked