Commit 268f20e8 authored by Daniel Bøndergaard's avatar Daniel Bøndergaard

Carousel: Use the transition duration from CSS

This makes it possible to change the transition duration in CSS
parent 463343af
...@@ -141,7 +141,7 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment