only run the animation for the selected tab