don't trigger the animation if the tab is not visible yet