aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2018-02-19 10:10:25 +0100
committerJohann-S <[email protected]>2018-02-19 10:10:25 +0100
commit3dd0bde664699fc7a191d0d3569f4f0ba8f06028 (patch)
treeff42d0fc35221dd53aede05d99491b4b812866bb /docs
parentc381d199655586d949a0929868bea889aed46fa8 (diff)
downloadbootstrap-3dd0bde664699fc7a191d0d3569f4f0ba8f06028.tar.xz
bootstrap-3dd0bde664699fc7a191d0d3569f4f0ba8f06028.zip
Fix carousel transition duration (#25218)
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/components/carousel.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/4.0/components/carousel.md b/docs/4.0/components/carousel.md
index 0aa132ed7..e12f83ceb 100644
--- a/docs/4.0/components/carousel.md
+++ b/docs/4.0/components/carousel.md
@@ -325,3 +325,7 @@ $('#myCarousel').on('slide.bs.carousel', function () {
// do something…
})
{% endhighlight %}
+
+### Change transition duration
+
+The transition duration of `.carousel-item` can be changed with the `$carousel-transition` Sass variable before compiling or custom styles if you're using the compiled CSS. If multiple transitions are applied, make sure the transform transition is defined first (eg. `transition: transform 2s ease, opacity .5s ease-out`). The transition duration must be the same for each carousel item.