From 84159753185f88704afc9506c5aab56ec61ee470 Mon Sep 17 00:00:00 2001 From: Kevin Ball Date: Tue, 26 Apr 2016 14:22:40 -0700 Subject: [PATCH] Add fast and slow classes to overlay if they exist on reveal --- js/foundation.reveal.js | 5 +++++ 1 file changed, 5 insertions(+) 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'); + } } -- 2.47.2