Skip to content
Super lightweight (~600 bytes) jQuery plugin to enable swipe gestures for Bootstrap 3 carousels on iOS and Android.
JavaScript
Branch: master
Clone or download

Latest commit

maaaaark Merge pull request #6 from jepfp/master
Fixed bug: Error if carousel has no items
Latest commit 594c9a4 Oct 1, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Updating license. Jul 3, 2015
README.md Update README.md Mar 23, 2017
jquery.bcSwipe.js Fixed bug: If the carousel does not (yet) contain any items, the swipe Jun 10, 2017
jquery.bcSwipe.min.js Fixed bug: If the carousel does not (yet) contain any items, the swipe Jun 10, 2017

README.md

Bootstrap Carousel Swipe (bcSwipe)

Super lightweight (~600 bytes) jQuery plugin to enable swipe gestures for Bootstrap 3 carousels on iOS and Android.

Usage

HTML

<!-- Bootstrap is required -->
<script src="bootstrap/js/bootstrap.js"></script>
<script src="jquery.bcSwipe.js"></script>

JS

$('.carousel').bcSwipe({ threshold: 50 });

Adjusting threshold will determine how long a swipe must be to move to the next carousel slide.

You can’t perform that action at this time.