]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Wrap .fade and .collapsing transition properties in -transitions
authorMark Otto <markdotto@gmail.com>
Sat, 26 Nov 2016 06:06:40 +0000 (22:06 -0800)
committerMark Otto <markdotto@gmail.com>
Sat, 26 Nov 2016 06:06:40 +0000 (22:06 -0800)
scss/_animation.scss

index 1be1971fbf10552042fc1a97400ac97adfb1b7a0..4112468d04a741f01fbde91d6e7a4f2e13cab9a4 100644 (file)
@@ -1,6 +1,9 @@
 .fade {
   opacity: 0;
-  transition: opacity .15s linear;
+
+  @if $enable-transitions {
+    transition: opacity .15s linear;
+  }
 
   &.active {
     opacity: 1;
@@ -30,7 +33,10 @@ tbody {
   position: relative;
   height: 0;
   overflow: hidden;
-  transition-timing-function: ease;
-  transition-duration: .35s;
-  transition-property: height;
+
+  @if $enable-transitions {
+    transition-timing-function: ease;
+    transition-duration: .35s;
+    transition-property: height;
+  }
 }