Adds support user-friendly swipe gestures.
- user-friendly swipe gestures works
- work with any wrap option(both, first, last, circular)
- work with vertical carousels
- easy to use
- jQuery
- jquery.jcarousel-core.js(minimum) also you may use bundle version: jquery.jcarousel.js
To use the plugin include jquery, jcarousel and jcarouselSwipe source files into your HTML document:
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.jcarousel.min.js"></script>
<script type="text/javascript" src="js/jquery.jcarousel-swipe.min.js"></script>
and init the plugin:
$('.jcarousel')
.jcarousel() // init jcarousel
.jcarouselSwipe(); // init jcarouselSwipe
It means how many slides will be scrolls at a go.
$('.jcarousel').jcarouselSwipe({
perSwipe: 3 // by default 1
});
On/off dragging items on swipe.
$('.jcarousel').jcarouselSwipe({
draggable: false // by default true
});
What method should used to switch slides.
$('.jcarousel').jcarouselSwipe({
method: 'scrollIntoView' // by default 'scroll'
});
#####Installation
npm install snake-345/jcarouselSwipe
#####Usage
var jcarouselSwipe = require('jcarouselSwipe');
You can find examples in the corresponding directory. I'm included my plugin in all jcarousel examples and added vertical carousel example.
Copyright (c) 2015-2016 Evgeniy Pelmenev. Released under the MIT license.