fade in and fade out effects implemented