changing modes animation