Add fadeOut and fadeIn effects.