make animation to move ball