>>341934465
make a reverse version of the animation
create a transition to that animation when parameter is not the correct integer
make another transition from reverse animation to it's default state once the reverse animation is completed (read up on has exit time)