fix animation for mobile