Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.03 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.03 KB

jCarousel SmoothScroll

SmoothScroll is a jCarousel plugin that forces a carousel to animate at a constant pace, regardless of varying item widths. Without SmoothScroll, a carousel which continously animates may speed up or slow down depending on the width of the list item being animated.

Installation

You must have jCarousel installed prior to loading the SmoothScroll plugin.

Install either by downloading jquery.jcarousel-smoothscroll.js to your project directory or, if you have Bower installed, simply enter bower install jcarousel-smoothscroll into your command line to install.

Usage

The following is an ideal SmoothScroll configuration. Alter animation settings as necessary.

$('.jcarousel').jcarousel({
    wrap: 'circular',
    animation: 15000
  })
  .jcarouselSmoothScroll()
  .jcarouselAutoscroll({
    target: '+=1',
    interval: 0
  });

License

Copyright 2014 Andrew Duthie.

Released freely under the MIT license (refer to LICENSE.txt)