@shazomiii/image-carousel
v1.0.2
Published
A simple image carousel.
Downloads
11
Readme
Image Carousel
A simple image carousel.
Installation
npm install @shazomiii/image-carouselUsage
To use the image carousel, import the createCarousel function and call it with a selector for your carousel element.
import createCarousel from '@shazomiii/image-carousel';
createCarousel('.carousel');Your HTML should have the following structure:
<div class="carousel">
<div class="slides">
<img src="..." alt="...">
<img src="..." alt="...">
<img src="..." alt="...">
</div>
<button class="prev">❮</button>
<button class="next">❯</button>
<div class="dots"></div>
</div>Development Server
To run the development server, clone the repository and run the following commands:
npm install
npm start