1.0.2 • Published 6 years ago

carousel-slider-js v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

CarouselJS

CarouselJS is a simple way to add a slider.

How to use

Adding the script.

<script src="https://cdn.jsdelivr.net/npm/carousel-slider-js/dist/carousel-js.min.js" ></script>

Or install

npm i --save carousel-js

and using with browserify

Using

carousel(carouselImageElement, prevNavElement, nextNavElement, images, delay);

Parameters

carouselImageElement : The img element.

prevNavElement : The element with the control prev img.

prevNavElement : The element with the control next img.

images : An array with the images.

delay : the time in milliseconds to delay the change.