aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordomq <[email protected]>2018-05-18 17:59:52 +0200
committerXhmikosR <[email protected]>2018-05-18 18:59:52 +0300
commit616ce9b75a59abd188c1b0ac5dce61be7abef36b (patch)
tree778e2411fe3ec509ddadf84b528a9a914c35d5e3
parentd6ee126713545ad729969a5a093ab50300372dc2 (diff)
downloadbootstrap-616ce9b75a59abd188c1b0ac5dce61be7abef36b.tar.xz
bootstrap-616ce9b75a59abd188c1b0ac5dce61be7abef36b.zip
Fix double-transition bug (#26452)
By applying the transition: CSS property only to classes that are active during sliding, we avoid an unnecessary, non-zero-time animation that although mostly invisible, does interfere with e.g. z-index based parallax
-rw-r--r--scss/_carousel.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/_carousel.scss b/scss/_carousel.scss
index de51d1b7a..91c23e5fc 100644
--- a/scss/_carousel.scss
+++ b/scss/_carousel.scss
@@ -23,7 +23,6 @@
display: none;
align-items: center;
width: 100%;
- @include transition($carousel-transition);
backface-visibility: hidden;
perspective: 1000px;
}
@@ -32,6 +31,7 @@
.carousel-item-next,
.carousel-item-prev {
display: block;
+ @include transition($carousel-transition);
}
.carousel-item-next,