create some sort of flag.
make an instance variable on the object.. something like "isHiding" init it to false.
If isHiding.....set animation to ABC, set isHiding=false
else If XisHiding.....set animation to XYZ, set isHiding=true
*this last part is inverted so it reads: if NOT true