attach it to a div to create a slideshow
npm install @muahchee/image-carouselnpm install @muahchee/image-carousel
``
`
put images in slide-container
`
import { ImageCarousel } from "@muahchee/image-carousel"
new ImageCarousel(frame, slideContainer, frameWidth, arrowDistance, wantSlideshow, slideshowTimerMs).create();
`
- frame = div.frame (querySelector)slideContainer
- = div.slide-container (querySelector)frameWidth
- = (px) image and frame widtharrowDistance
- = (%) constrols how far away the next and previous arrow are from the left and right edge of the frame.wantSlideshow
- = (true/false) toggle slideshow. Default is trueslideshowTimerMs` = (number) controls how many milliseconds to change image. Doesnt do anything if wantSlideshow is false. Default is 2300.
-
replace image files with the new image but same name