add fadeIn and fadeOut animation