Skip to content

tomerdmnt/carousel-slide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carousel-slide

Simple carousel component with slide transition. Based on tomerdmnt/carousel

  <div id="myCarousel">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>
  var Carousel = require('carousel-slide');
  var c = Carousel(document.getElementById('myCarousel');

  // show next item
  c.next();

  // show previous item
  c.prev();

Installation

$ component install tomerdmnt/carousel

API

(el)

Binds to the container element of the carousel.

next()

Show the next item. if there is none returns null.

prev()

Show the previous item. if there is none returns null.

License

MIT

About

A slide transition for the carousel component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published