A drop-in replacement for Twitter Bootstrap's Carousel (v3.0) to enable gestures on touch-enabled devices. http://andreasklein.org/articles/bootstrap-touch
- Supported gestures:
dragleft
dragright
swipeleft
swiperight
- Optimized layout for touch devices
- Build with Less & Grunt
- No extra initializations
Three quick start options are available:
- Download the latest release
- Clone the repo:
git clone git://github.com/ixisio/bootstrap-touch-carousel.git
- Add as Bootstrap git submodule
git submodule add git://github.com/ixisio/bootstrap-touch-carousel.git /vendor/your-sm
In case you are using a desktop to test this plugin you will need to emulate touch in your browser. Use Chrome to do so:
- Open Chrome Developer Tools
- Click on the Settings icon and open up the overrides panel
- Check "Enable" Overwrites and scroll down and check "Enable touch events"
- Refresh the Page
Have a look at the original bootstrap carousel documentation, the options are mostly the same.
http://getbootstrap.com/javascript/#carousel
- Type:
Number
Boolean
- Default
false
The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.
data-interval="2000"
- Type:
Number
- Default
0.25
Dragging toughness of first and last carousel item.
data-toughness="0.5"
This jQuery Plugin is designed to add touch-support to your existing bootstrap carousel. The only thing you have to do, is to load these files into your existing Bootstrap project:
/dist/js/bootstrap-touch-carousel.js
/dist/css/bootstrap-touch-carousel.css
Bootstrap uses Grunt with convenient methods for working with the framework. It's how we compile our code, run tests, and more. To use it, install the required dependencies as directed and then run some Grunt commands.
grunt
Default tasks watches for JavaScript & LESS Changesgrunt build
creates a distribution buildgrunt test
provides some qunit testsgrunt bump
release management
0.7.0
- Disable when with only 1 slide #6
- Add new Grunt Task
grunt-bump
for release management. vojtajina/grunt-bump
0.6.0
- fixes indicators touch sensitivity #9
- code refactoring
0.5.0
- add resize/orientation events and resize the carousel to its parent element width #5
- Some minor bugfixes
- update docs
0.3.0
- Update to [email protected]
0.2.0
- MSPointer benchmarks
- fixes #3, touch optimizes indicator pills
- #2, display captions on portait orientation iPad
- Create some unittest with qunit
- Documentation
0.1.0
- Initial Commit - provides the basic functionality.
- Disable / Stop initialization if there is only one item #6
- Endless Loops (wrap)
Live Resizefixed in v0.5.0 #5- Hammer.js custom build (use only whats required)
MSPointer: Support pointer and gesture events. Tests needed!Works perfectly! See hammer.js compatibility tableOptimize indicator pills for touchdone! #3- Better Documentation
- Unit Tests (qunit)
- Register as bower component
Copyright (c) 2013 ixisio Licensed under the MIT license.