update animation: exchange left to right and right to left