change animation direction