Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anupamkhosla/bootstrap-carousel-speed

Customized bootstrap carousel.js plugin to have custom transition speed for slides.
https://github.com/anupamkhosla/bootstrap-carousel-speed

Last synced: 13 days ago
JSON representation

Customized bootstrap carousel.js plugin to have custom transition speed for slides.

Awesome Lists containing this project

README

        

# bootstrap-carousel-speed
Customized bootstrap 3.3.7 carousel.js plugin to have user defined transition speed of slides.

## About
As asked in many stackoverflow posts like http://stackoverflow.com/q/17332431/3429430 and http://stackoverflow.com/q/20840018/3429430 bootstrap 3.3.7 carousel cannot have different sliding speed only with css. The carousel.js file is also needed to be modified. With this plugin you can initialize bootstrap carousel in your js with custom user defined sliding speed. This is different from the interval option.

## Install with Bower
`bower install bootstrap-carousel-speed`

## How to Initialize

In your css put:
```
@media all and (transform-3d), (-webkit-transform-3d) {
.carousel-inner > .item {
transition: transform 1500 ease-in-out;
}
}
```

In your main js initialize bootstrap carousel with
```
$('#bslider').carousel({
TRANSITION_DURATION: 1500 // This is my custom bootstrao property that sets each transitions time
})
```
Note1: Transition duration must be same in both css and js.
Note2: transition.js is a dependency of carousel.js, hence has been included within.