Updated to add events and additional features

Added open and close events.  Better custom transition handling. Create
the background div on the fly.  Separated the background animation from
the content animation.