Skip to content

bzalasky/carousel.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carousel.js

Dependencies

Initialization

After you've included jQuery (and any other external script files), you can initialize your carousel following the form:

// new $.carousel([el], [options])

var carousel = new $.carousel('#carousel ul', {height: 438, width: 700});

Optional Parameters

El (element) is required, however, you can also pass in a hash of optional parameters to override the defaults.

  • itemSel (item selector)
  • height (integer)
  • width (integer)
  • nextSlideSel (next button selector)
  • prevSlideSel (previous button selector)
  • duration (jQuery fade duration, integer or string)
  • easing (jQuery easing)
  • nextCallback (function)
  • prevCallback (function)

About

A lightweight jQuery carousel plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published