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

Carousel: Use the transition duration from CSS

This makes it possible to change the transition duration in CSS
parent 463343af
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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
......
Supports Markdown
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