A jQuery plugin for scrolling gallery.
CSS CoffeeScript Ruby

README.md

jQuery Carousel

Carousel is a jQuery plugin created to provide a scrolling gallery.

Installation

To install copy the javascripts and stylesheets directories into your project and add the following snippet to the header:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js" type="text/javascript"></script>
<script src="javascript/jquery.carousel.js" type="text/javascript"></script>
<link href="stylesheets/jquery.carousel.css" rel="stylesheet" type="text/css" />

This plugin is also registered under http://bower.io/ to simplify integration. Try:

npm install -g bower
bower install carousel

Lastly this plugin is registered as a https://rails-assets.org/ to simplify integration with Ruby on Rails applications:

Gemfile

+ source 'https://rails-assets.org'
...
+ gem 'rails-assets-carousel'

application.css

/*
 ...
 *= require carousel
 ...
*/

application.js

//= require jquery
...
//= require carousel

Example

Setting up a carousel is easy. The following snippet is a good start:

<div class="carousel">
  <div class="previews">
    <div class="preview"><img src="samples/sample-01.png" /></div>
    <div class="preview"><img src="samples/sample-02.png" /></div>
    <div class="preview"><img src="samples/sample-03.png" /></div>
    <div class="preview"><img src="samples/sample-04.png" /></div>
  </div>
  <div class='controls'>
    <a class='next' data-action='next' href='#'>›</a>
    <a class='prev' data-action='prev' href='#'>‹</a>
  </div>
</div>

Status

Status

Copyright

Copyright (c) 2010 - 2014 Kevin Sylvestre. See LICENSE for details.