aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bøndergaard <[email protected]>2013-11-08 11:55:06 +0100
committerDaniel Bøndergaard <[email protected]>2013-11-08 11:55:06 +0100
commit268f20e84c812de9eb2cbe13261c6fe70f591857 (patch)
tree2d748d34a478a679f04ff08ed28b0121ca5ddeda
parent463343af63344dbbc3db04f40b0b804baa919b7e (diff)
downloadbootstrap-268f20e84c812de9eb2cbe13261c6fe70f591857.tar.xz
bootstrap-268f20e84c812de9eb2cbe13261c6fe70f591857.zip
Carousel: Use the transition duration from CSS
This makes it possible to change the transition duration in CSS
-rw-r--r--js/carousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/carousel.js b/js/carousel.js
index 902d4d781..08a45a4f5 100644
--- a/js/carousel.js
+++ b/js/carousel.js
@@ -141,7 +141,7 @@
that.sliding = false
setTimeout(function () { that.$element.trigger('slid') }, 0)
})
- .emulateTransitionEnd(600)
+ .emulateTransitionEnd($active.css('transition-duration').slice(0, -1) * 1000)
} else {
this.$element.trigger(e)
if (e.isDefaultPrevented()) return