Refine the switching animation