mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 05:58:25 +01:00
Merge pull request #11416 from danielboendergaard/carousel-duration
Carousel: Use the transition duration from CSS
This commit is contained in:
commit
b9ca65ebe7
@ -141,7 +141,7 @@
|
||||
that.sliding = false
|
||||
setTimeout(function () { that.$element.trigger('slid.bs.carousel') }, 0)
|
||||
})
|
||||
.emulateTransitionEnd(600)
|
||||
.emulateTransitionEnd($active.css('transition-duration').slice(0, -1) * 1000)
|
||||
} else {
|
||||
this.$element.trigger(e)
|
||||
if (e.isDefaultPrevented()) return
|
||||
|
Loading…
x
Reference in New Issue
Block a user