Super lightweight (~600 bytes) jQuery plugin to enable swipe gestures for Bootstrap 3 carousels on iOS and Android.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7da054c Mar 23, 2017
Permalink
Failed to load latest commit information.
LICENSE Updating license. Jul 3, 2015
README.md Update README.md Mar 23, 2017
jquery.bcSwipe.js Updating version number. Jun 14, 2015
jquery.bcSwipe.min.js Updating version number. Jun 14, 2015

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.