From: Kevin Ball Date: Tue, 26 Apr 2016 21:22:40 +0000 (-0700) Subject: Add fast and slow classes to overlay if they exist on reveal X-Git-Tag: v6.2.2-rc1~36^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8678%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Add fast and slow classes to overlay if they exist on reveal --- diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index 9d279770f..3c657e6d0 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -209,6 +209,11 @@ class Reveal { if(this.$overlay) { this.$overlay.css({'visibility': ''}).hide(); + if(this.$element.hasClass('fast')) { + this.$overlay.addClass('fast'); + } else if (this.$element.hasClass('slow')) { + this.$overlay.addClass('slow'); + } }