@mahmoudmirghani/image-carousel
v1.0.0
Published
A simple image carousel
Downloads
10
Maintainers
Readme
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