animation works on mobile and desktop