animation fixed for tablets and mobile