reset animation on resize