Implementing fadeIn and fadeOut