1
0
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:
Mark Otto 2013-12-18 15:01:47 -08:00
commit b9ca65ebe7

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