From 3dd0bde664699fc7a191d0d3569f4f0ba8f06028 Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Mon, 19 Feb 2018 10:10:25 +0100 Subject: Fix carousel transition duration (#25218) --- docs/4.0/components/carousel.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') 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. -- cgit v1.2.3