If you like this plugin, consider making a donation: http://www.kyrielles.net/sliderkit/, click "Donate".
The purpose of Slider Kit is to gather common slideshow-like jQuery functionalities (such as news sliders, photos galleries/sliders, carousels, tabs menus) into one lightweight and flexible plugin combined with ready-to-use CSS skins.
All Slider Kit downloads can be found here: http://code.google.com/p/sliderkit/downloads/list.
As many jQuery plugins, Slider Kit is a subtle combination of HTML, CSS and jQuery. The jQuery itself won't do any design or CSS. So you'll need to work on a CSS skin to get the design you want.
But first, let's see some HTML.
CSS class name: [cssprefix].
This is the main container. It must have defined width and height values in the CSS. Because all of its child tags are in absolute position.
CSS class name: [cssprefix]-panel.
This is the sliding part. The content can be anything: images, text, news, etc.
CSS class name: [cssprefix]-go-btn [cssprefix]-go-prev.
This button will slide to the previous item. It can be placed anywhere inside the main container.
CSS class name: [cssprefix]-go-btn [cssprefix]-go-next.
This button will slide to the next item. It can be placed anywhere inside the main container.
CSS class name: [cssprefix]-panel-textbox.
It is mostly used over photos. It can be placed anywhere over the panel area.
CSS class name: [cssprefix]-nav.
This block contains navigation thumbnails. Thumbnail content can be anything, text or image.
CSS class name: [cssprefix]-nav-btn [cssprefix]-nav-prev.
This button will scroll the nav bar to the right. It must be placed in the nav container.
CSS class name: [cssprefix]-nav-btn [cssprefix]-nav-next.
This button will scroll the nav bar to the left. It must be placed in the nav container.
[cssprefix] default value is "sliderkit". You can replace it with your own value.
Here is a representative HTML structure to be used with Slider Kit:
The Slider Kit core CSS file is sliderkit-core.css.
It is required to make the plugin work properly. Of course you can paste it in your own CSS file and adapt it if needed.
In addition to the core CSS, you have to build a CSS skin to get the design you want.
To help you in this hero quest, I wrote several CSS skins examples (check the demos pages to see them in action).
The demos CSS file is sliderkit-demos.css. Feel free to explore this file and take what you need.
For the sake of cross-browser compatibility, I added 3 CSS files for Internet Explorers (mainly for opacity and transparency problems):
The main javascript file is currently jquery.sliderkit.1.9.1.pack.js (packed).
Check the available add-ons.
Check the 'Options' section below.
(string) default is "sliderkit". The prefix to use on every CSS class names.
(int) default is 0. Set the start position. First is 0.
(boolean) default is true. Activate auto-scrolling.
(int) default is 4000. Set the auto-scrolling speed (ms).
(boolean) default is: false. If set to true, the auto-scrolling won't stop on panels mouseover.
(boolean) default is false. Activate the mousewheel navigation.
(boolean) default is false. Activate the keyboard navigation. Very basic for now (left/right arrows only).
(boolean) default is false. Activate the infinite nav scroll.
(int) default is 5. Defines how many thumbnails to display in the nav clip.
(boolean) default is false. If set the panels will slide on nav thumbnails mouseover (by default panels slide on click).
(boolean) default is false. Defines if the nav clip must be center-aligned in the nav container.
(boolean) default is false. If set to true, will make the carousel scroll continuously (use this option with a "linear" scrolleasing).
(boolean) default is false. If set to 'true', will make the carousel scroll if a line first or last thumbnail is clicked.
(boolean) default is true. If set to 'false', will make the navbar scroll without switching panels.
(string) default is "sliding". Define the carousel transition effect. Possible values: "sliding", "none"
(function) default is: function(){}. The function called before the nav transition start.
(function) default is: function(){}. The function called before the nav transition start.
(int) default is equal to 'shownavitems' option value. Defines how many nav thumbnails must be scrolled when nav buttons are clicked. Can't be greater than the 'shownavitems' option value.
(int) default is 600. Set the nav scroll speed (ms).
(string) default is "swing".
Add an easing effect to the nav slide transition.
Default jQuery easing functions are "swing" or "linear". Other effects can be added with the jQuery easing plugin: http://gsgd.co.uk/sandbox/jquery/easing/.
(string) default is "fading". Define the panels transition effect. Possible values: "fading", "sliding", "none" + (from v1.9) "fancy" => see the 'imagefx' option below.
(int) default is 700. Set the panel slide transition effect speed (ms).
(string) default is "swing".
Add an easing effect to the panel slide transition.
Default jQuery easing functions are "swing" or "linear". Other effects can be added with the jQuery easing plugin: http://gsgd.co.uk/sandbox/jquery/easing/
(string) default is "none". Add a transition effect on the first displayed item. There are only 2 possible values for the moment: "fading" or "none".
(function) default is function(){}. The function called before the panel transition start.
(function) default is function(){}. The function called when panel transition is over.
(boolean) default is false. If set to true, go buttons will fade in/out on panel mouseover.
(boolean) default is false. Activate the 1-click navigation.
(boolean) default is false. Set the nav clip direction to vertical.
(boolean) default is false. Set the panel sliding direction to vertical (only if "panelfx" is defined as "sliding").
(boolean) default is false. Required to build a tabs menu.
(boolean) default is false. Use panels with no fixed height (in this case, 'panelfx' value can't be "sliding").
(boolean) default is true. By default the user can slide to the next content even if the slider is still running. You can stop this behavior by setting the "fastchange" option to false.
(boolean) default is false. Activates the Slider Kit 'Counter' add-on.
(boolean/array) default is false. Activates the Slider Kit 'DelayCaption' add-on.
(boolean/array) default is false. Activates the Slider Kit 'Timer' add-on.
(array) default is false. Slider Kit 'ImageFx' add-on parameters. Use it with 'fancy' panelfx transition.
(boolean) default is false. If set to true, the script will stop on errors and return error code values. Check documentation.
From version 1.7, in order to keep a lightweight plugin core, new Slider Kit functionalities are developped as add-ons.
Let's take the Counter add-on example:
This add-on will handle panel and/or lines counters. See demo page for details.
This add-on will make the capion textboxes slide over the panels area. See demo page for details.
(int) default is: 400. Textbox delay value (ms).
(string) default is: "bottom". Only for "sliding" transition: set the slide starting position. Possible values: "top", "right", "bottom", "left".
(string) default is: "sliding". Transition type. Possible values: "sliding", "fading".
(int) default is: 300. Transition duration (ms).
(string) default is: "linear". Optional easing on transition effect.
(boolean) default is: false. If set to true, the slider won't switch until the caption animation is finished.
While auto-scrolling, this add-on will display a progress bar illustrating the time remaining before the next panel appears. See the demo page.
(float) default is: 1. Opacity value for the animation fadeout effect. Possible values: float numbers between 0 and 1. Ex: 0.2.
Slider Kit ImageFx add-on was built from jqFancyTransitions jQuery plugin by Ivan Lazarevic (Examples and documentation at: http://www.workshop.rs/projects/jqfancytransitions).
It provides Slider Kit images slideshows with 4 fancy transitions effects.
ImageFx only works for images. See the demo page
(string) default is: 'curtain'. Image transition type. Available values: 'curtain', 'zipper', 'wave', 'fountain', 'random'.
(int) default is: 60. Delay between each strip, in ms. The higher value, the slower is the animation.
(int) default is: 500. Strip animation duration, in ms. The higher value, the slower is the animation.
(int) default is: 10. Number of strips.
(string) default is: 'default'. Available values: 'default' (vertical strips), or 'reverse' (horizontal strips).
(string) default is: 'default'. Start position. Available values: 'default' (default position is 'top' if 'stripOrientation' is vertical, 'left' if horizontal), or 'reverse' (reverse position is 'bottom' if 'stripOrientation' is vertical, 'right' if horizontal).
(string) default is: 'default'. Available values: 'default' (default direction is 'top to bottom' if 'stripOrientation' is vertical, 'left to right' if horizontal), or 'reverse' (reverse direction is 'bottom to top' if 'stripOrientation' is vertical, 'right to left' if horizontal). Extra value: 'auto' (only for 'curtain' effect).
A way of extending Slider Kit is to fetch the instance from anywhere on your page.
See demo page.
Starts the auto scrolling.
Stops the auto scrolling.
Starts the auto scrolling and changes the Play button CSS class.
Stops the auto scrolling and changes the Play button CSS class.
Scroll the nav to the previous line.
Scroll the nav to the next line.
Displays the previous item in line, or the last if you are at the first item.
Displays the previous item in line, or the last if you are at the first item.
Switches item using the specify index.
Highlight item using the specify index.
If you are having trouble running the plugin, start by checking these basic points:
To help you finding what's wrong with your plugin installation, you can activate the debug mode option:
debug:true
The script will stop on errors during its execution and display codes:
If you find an issue using Slider Kit, thanks to report it.
If you still can't find a solution to your problem, try the Slider Kit jQuery plugin Google Group.
While developing Slider Kit, I was helped by many excellent jQuery works:
jCarousel,
jCarousel Lite,
Galleria,
Gallery view,
Contentflow,
Nivo Slider,
jQuery Cycle.
Slider Kit packed version is generated through Dean Edwards's packer.
All photos used in the demos pages are from Camille (New York, 2008).