Added delegate.

Delegate methods for animating in, out, and restoring.