add switch animation