]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add fast and slow classes to overlay if they exist on reveal 8678/head
authorKevin Ball <kmball11@gmail.com>
Tue, 26 Apr 2016 21:22:40 +0000 (14:22 -0700)
committerKevin Ball <kmball11@gmail.com>
Tue, 26 Apr 2016 21:22:43 +0000 (14:22 -0700)
js/foundation.reveal.js

index 9d279770f79cca301a413c6b49194833882056a6..3c657e6d09c87c19e86d8bdd830b67e90141157c 100644 (file)
@@ -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');
+      }
     }