mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
Fix carousel transition duration (#25218)
This commit is contained in:
committed by
Johann-S
parent
c381d19965
commit
3dd0bde664
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user