1.0.0 • Published 10 months ago

@mahmoudmirghani/image-carousel v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Constructor call:

const carousel = new Carousel(intervalTime, images);

where "intervalTime" is the time in milliseconds for how long each slide will be displayed. and "images" is an array of strings of image paths to be displayed in the carousel

Create an instance of Carousel and get the carousel HTML Element by calling getCarouselElement on the instance

carousel.getCarouselElement();

You can change the animation of the slider by targeting .slides in css and setting the transition: property