reworked to inclue animate.css, classes, class-transitions
added overlay
overlay duration = animation duration