adding velocity to animation