JSPM

  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q71454F
  • License MIT

Super simple carousel with touch support

Package Exports

  • tnt-carousel

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tnt-carousel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tnt-carousel

More documentation coming soon!

$ npm install tnt-carousel
var Carousel = require('tnt-carousel');
new Carousel($('#my-carousel'));
<div id="my-carousel">
    <div>This is slide #1</div>
    <div>This is slide #2</div>
    <div>This is slide #3</div>
    <div>This is slide #4</div>
    <div>This is slide #5</div>
    <div>This is slide #6</div>
    <div>This is slide #7</div>
</div>

Options

Option Type Default Description
autoplay boolean false Enables autoplay
autoplayInterval int 4000 The time interval (in milliseconds) between each slide
touchEvents boolean true Whether or not to use touch events
arrowButtons boolean true Whether to automatically add a previous and next button