Added exiting animation support.
Revert "Added exiting animation support."

This reverts commit 34d1f8f7ed4b34c18112edf32512e81404f6436f.
Added exit animation support.