1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-07 22:26:57 +02:00

Merge pull request #11416 from danielboendergaard/carousel-duration

Carousel: Use the transition duration from CSS
This commit is contained in:
Mark Otto
2013-12-18 15:01:47 -08:00

View File

@@ -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