Skip to content

zeke/carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carousel

Turn HTML pages into keyboard-navigable slideshows. Designed to be used with browserify.

If jQuery is available, scroll transitions will be animated.

Installation

npm install carousel --save

Usage

First, check out the demo directory.

Create a simple script to use Carousel:

// pre-browserify.js
var Carousel = require('carousel');
new Carousel('#slides');

Use browserify to bundle it up for the browser:

npm install browserify -g
browserify pre-browserify.js -o post-browserify.js

Then drop the browserified script into your HTML page and you're good to go.

<script src="post-browserify.js"></script>

<ol id="slides">
  <li>a slide</li>
  <li>another slide</li>
  <li>keep on slidin'</li>
<ol>

Demo

Visit ba2.herokuapp.com for a working example of Carousel in action, then check out its source on github.

Hacking

npm install grunt-cli -g
npm install
grunt

About

Turn HTML pages into keyboard-navigable slideshows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published