Added ability to create custom animations for the overlay-background.

I added the ability to set the class of the overlay background in order to create animations on it.