only animate loading spinner when on-screen