simple Carousel with jQuery
https://albert-cyberhulk.github.io/jQuery-Carousel/
Clone a Git repository using the command line.
npm
npm install jquery-cccarousel --saveor
bower
bower install jquery-cccarousel --saveadd it to your HTML file
<script src="bower_components/jquery-cccarousel/dist/cc_script.min.js"></script>or
<script src="node_modules/jquery-cccarousel/dist/cc_script.min.js"></script>The built version of jquery-carousel will be put in the dist/ directory, along with the minified copy.
Install npm packages
npm installInstall bower packages
bower installInstall Grunt cli as a global node module
npm install -g grunt-cliTo run dev server type in
grunt serveTo run unit tests type in
grunt testTo build production ready version type in
grunt build- jQuery: JavaScript library
You can change default settings
$.fn.ccCarousel.defaults = {
clickTimer: 500, //setTimeout for click
hoverTimer: 6000, //setTimeout for hover
imageWidth: 330
}There are 3 public methods for jQuery Carousel plugin slider
- moveToLeft: moves slider to left
- moveToRight: moves slider to right
- stop: stops the slider
This plugin is available under the MIT license.