Implements an animation for closing ObjectContainer