jQuery Slideshow
Simple jQuery slideshow library. Lightweight, responsive, easy to implement & configure.
Demo
http://www.sjoloughlin.com/jquery-slideshow
Installation
Download
Get the latest release from the releases page and add the files to your project.
Link the stylesheet inside your <head>
tag:
Then, before your closing <body>
tag add:
NPM
npm install jquery-slideshow
Usage
Add the following HTML for the slider:
Then, before your closing <body>
call .slider()
on the slider element:
Configuration
The slider is configurable by passing in a configuration object when calling .slider()
on the slider element:
Options
Config | Type | Default | Description |
---|---|---|---|
speed |
int |
1000 |
How long the slide animation transition lasts for in milliseconds e.g. 1000 = 1 second |
delay |
int |
3000 |
How long the slide will be displayed for in milliseconds e.g. 3000 = 3 seconds |
autoplay |
boolean |
true |
Whether to start the slideshow automatically |
navigation |
boolean |
true |
Whether to display left/right navigation buttons |
pagination |
boolean |
true |
Whether to display clickable slide indicators |
width |
string |
100% |
Width of the slider |
height |
string |
auto |
Height of the slider |
direction |
string |
right |
The direction that the slider will slide |
responsive |
boolean |
true |
Whether to make the size of the slider responsive |
License
This project is licensed under the MIT License - see the LICENSE.md file for details.