Check if the element is visible while transitioning