Skip to content

cr-pl/basic-image-carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-carousel

A light-weight image carousel.

Using ES module import:

  import BasicImageCarousel from "@cr-pl/basic-image-carousel";
  import '@cr-pl/basic-image-carousel/style.css';
  (new BasicImageCarousel(null, { interval: 3500 })).start();

Basic usage:

  <script src="/dist/carousel-common.js"></script>
  <script>
    // Instantiate the Carousel with no images to use the default array (some demo images):
    (new BasicImageCarousel(null, { interval: 3500 })).start();
    // Instantiate the Carousel with some images
    // (new BasicImageCarousel(['/img/1.jpg', '/img/2.jpg', '/img/3.jpg', '/img/4.jpg'], { interval: 3500 })).start();
  </script>

About

A light-weight image carousel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published