From 616ce9b75a59abd188c1b0ac5dce61be7abef36b Mon Sep 17 00:00:00 2001 From: domq Date: Fri, 18 May 2018 17:59:52 +0200 Subject: [PATCH] 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 --- scss/_carousel.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/_carousel.scss b/scss/_carousel.scss index de51d1b7a7..91c23e5fc3 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,