Added fade logic

Fade logic to fade out the animation once clicked.