Welcome to the third installment in the jQuery plugin series. This week I’m showcasing my most used plugin, a jQuery Carousel. It seem like every site that I do the client wants some kind of carousel. This plugin has been iterated a number of times, with extra functionality being built over a long period of time…
Here’s a list of options for the carousel:
- itemWidth – integer, item width
- itemHeight – integer, item height
- scrollNext – string, class of the next button
- scrollPrev – string, class of the previous button
- scrollPane – string, choose the name of the scrollPane – if false then walk the DOM
- scrollSpeed – integer, speed at which the carousel scrolls
- scrollNum – integer, how many items the carousel scrolls
- scrollVisible – integer, how many items are visible in the carousel
- circular – boolean, will carousel scroll back to the beginning of the list when it is at the end
- vertical – boolean, is the carousel vertical or horizontal scrolling?
- startPoint – integer, choose the scroll number which the carousel starts on, 0 is default (nothing), 1 is the first item
- rotating – boolean, auto rotates the carousel continually
- rotatingSpeed – integer, speed at which the carousel continually rotates
- rotatingDirection – string, rotation direction
- rotatingPause – integer, pause between rotation
- controlList – string, choose the control list selector
As usual there is a demo page where you can see it in action. Also the project is being hosted on GitHub where all the source code is availiable.
Have as much fun with it as I have, and stay tuned for next week when I post my form validator plugin.
Thanks for the post Dan, love it and will be playing with it tonight. Cheers.
Nice work Dan, looks really good.