diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2018-02-19 12:10:25 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2018-02-19 12:10:25 +0300 |
commit | 3dd0bde664699fc7a191d0d3569f4f0ba8f06028 (patch) | |
tree | ff42d0fc35221dd53aede05d99491b4b812866bb /docs | |
parent | c381d199655586d949a0929868bea889aed46fa8 (diff) |
Fix carousel transition duration (#25218)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/4.0/components/carousel.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/4.0/components/carousel.md b/docs/4.0/components/carousel.md index 0aa132ed77..e12f83cebb 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. |