prevent animation on UI elements on window resize