To change the current slide speed, not the transition time, since I use LESS, I found myself adding this to my custom.less (which first imports all the other LESS bootstrap files):
@slideSpeed: 2s .carousel-inner { > .item { .transition(@slideSpeed ease-in-out left); @media all and (transform-3d), (-webkit-transform-3d) { transition: transform @slideSpeed ease-in-out; } } }
Hope this helps someone like @ToolmakerSteve or me in the future.
It calls a constant in bootstrap.js there, which I had to change to a parameter (see below "duration")
Carousel.DEFAULTS = { interval: 5000, pause: 'hover', wrap: true, keyboard: true, duration: 600 }
and replace:
//.emulateTransitionEnd(Carousel.TRANSITION_DURATION) .emulateTransitionEnd(this.options.duration)
Then I can add data-duration = "1000" to my markup.
Randy slavey
source share