animation works but only when mouse moves