A simple jquery sliding plugin, supporting responsive design, keyboard and touch navigation.
Under development. I'll post future features and enhancements, in the issue tracker.
Should you find bugs or want to suggest a feature, feel free to post it in an issue. :-)
Features:
- AutoPlay Slideshow
- Mouse slide navigation
- Prev/next button navigation
- HTML5 data-attribute captions
- Pagination
- Repeat when last slide is reached
- Play the slideshow backwards
- Auto adjust size initially and on browser resize, for responsive designs
- Touch enabled (limited to a few browsers)
Most of these features can be configured and turned off, when setting up the slider.
- IE6, IE7, IE8, IE9, IE10 - compatible
Then in the header of your website, you insert the references to jquery and the slider plugin:
<script src="Scripts/jquery-1.9.1.min.js"></script>
<script src="Scripts/jquery.excoloSlider.min.js"></script>
<link href="Content/jquery.excoloSlider.css" rel="stylesheet">
The HTML code for the slides is simply a div container, with any child objects being the slides:
<div id="slider">
<img src="images/image1.jpg" />
<img src="images/image2.jpg" />
<img src="images/image3.jpg" />
<img src="images/image4.jpg"
data-plugin-slide-caption="I am a caption <b>and I can contain HTML.</b>" />
<img src="images/image5.jpg" />
<img src="images/image6.jpg" />
<img src="images/image7.jpg" />
<div>
<h2>This is the last slide</h2>
<img style="width: 50%: float: right;" src="images/image8.jpg" />
</div>
</div>
Notice how you can use the HTML5 data-attribute data-plugin-slide-caption to create a caption text for each slide. These captions allow HTML and can be fully styled using css.
Then to initialize the slider plugin with default settings you insert the script:
$(function () {
$("#slider").excoloSlider();
});
Configuration can be seen on our GitHub page
Examples can be seen on our GitHub page
2013-09-10 - v1.1.3
- fix page scrolling on touch devices when finger start scrolling on slider (EL-shadow)
- fix minor bug on iOs rotating (EL-shadow)
- fix minor bug prev next button (EL-shadow)
2013-11-07 - v1.1.2
- resolve container left position overloading (EL-shadow)
- fix alignment bug with fraction size (EL-shadow)
2013-09-30 - v1.1.1
- fix drag/swipe issue when slides count less 4 (EL-shadow)
2013-09-30 - v1.1
- fix IE bugs, add click-tap functions (EL-shadow)
2013-06-26 - v1.0.4
- Added non-minimized js script to NuGet package (excolo)
2013-06-15 - v1.0.3
- Code cleaning (excolo)
2013-06-15 - v1.0.0
2013-06-13 - v0.4.0
- Added HTML5 data-attribute captions (excolo)
2013-06-13 - v0.3.5
- Updated jQuery.org plugin gallery manifest (excolo)
2013-06-13 - v0.3.4
- Removed text-selection when using mouse navigation (excolo)
- Created a NuGet package for easy installation on ASP.NET projects (excolo)
2013-06-13 - v0.3.3
- Increased browser support (excolo)
2013-06-10 - v0.3.1
- Added previous/next button navigation (excolo)
- Added a stylesheet for default styling of slider (excolo)
2013-06-07 - v0.2.3
- Added mouse navigation (excolo)
2013-05-20 - v0.1.4
- Initial version (excolo)
Free for both personal and commercial use.
Copyright (c) 2013 Elnur Kurtaliev. Released under the MIT license.