mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 07:37:27 +02:00
Carousel: Use the transition duration from CSS
This makes it possible to change the transition duration in CSS
This commit is contained in:
@@ -141,7 +141,7 @@
|
|||||||
that.sliding = false
|
that.sliding = false
|
||||||
setTimeout(function () { that.$element.trigger('slid') }, 0)
|
setTimeout(function () { that.$element.trigger('slid') }, 0)
|
||||||
})
|
})
|
||||||
.emulateTransitionEnd(600)
|
.emulateTransitionEnd($active.css('transition-duration').slice(0, -1) * 1000)
|
||||||
} else {
|
} else {
|
||||||
this.$element.trigger(e)
|
this.$element.trigger(e)
|
||||||
if (e.isDefaultPrevented()) return
|
if (e.isDefaultPrevented()) return
|
||||||
|
Reference in New Issue
Block a user