Now it will watch the current tab and show the animation only when switch to that tab