Only animate when responding to window resize event