Javascript library to create image carousel
npm install ctc-carousel-js> Javascript library to create image carousel.
``sh`
Library lets you create image carousel for one or multiple image gallery
`sh`
npm i ctc-carousel-js
`sh
Dowload and include following file:
carousel.js
Or use cdn
`
`sh
new ctcCarousel('selector1,selector2',{autoPlay: true, autoPlayInterval: number, autoPlaySelector: 'selector'},{callBack:function} );
First Parameter : one or multiple selector to apply carousel.
Second Parameter :
autoPlay : boolean, (Optional, set true to activate slide autoplay)
autoPlayInterval : number, (Optional,number for slide autoplay interval in micro seconds default 1000) )
autoPlaySelector : 'selectors', (one or more element to set on autoplay (default all carousels will autoplay)
Third Parameter
callBack : function, (Function to be called when after setting up carousel)
Note 1 : Initialize carousel inside script tag on window onload or footer. (Selector should be wrapper element containing images)
Note 2 : Do not forget to set height and width of wrapper element.
``
Contributions, issues and feature requests are welcome. Feel free to check issues page if you want to contribute.
š¤ ujw0l
* Twitter š @bastakotiujwol
* Github š @ujw0l
Please āļø this repository if you like it.
Copyright Ā© 2019 ujw0l.
š This project is MIT licensed.
*
_This README was generated with ā¤ļø by readme-md-generator_