skip animation if spinner element is outside of the viewport