Skip to content

braungoodson/Carousel.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carousel.js

A JavaScript framework for image slideshows.

Features

  • Turns backwards or forwards.
  • Preloads images.

Usage

General:

var c = new Carousel(imageNameArray,domElementContainer);
c.showImage();

Special:

var MyCarousel = new Carousel(
  ["image000.png","image001.png","image002.png","image003.png"],
  document.getElementById("MyCarousel")
);
MyCarousel.showImage();
MyCarousel.forwards();
MyCarousel.backwards();

Caveats

  • Must instantiate your carousel object after the desired container element is registered with the dom.
  • Must define a style for the container element, there is no default.

About

A JavaScript framework for image slideshows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published