Tiny Responsive Content Carousel Plugin For jQuery - hwSlider
| File Size: | 13.2 KB |
|---|---|
| Views Total: | 1872 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
hwSlider is a tiny, simple-to-use jQuery slider plugin used for creating a responsive, automatic, touch-enabled carousel slider to present your custom html contents on any platforms.
How to use it:
1. First you have to include jQuery library together with the jQuery hwSlider plugin's CSS & JS files on the html page.
<link rel="stylesheet" href="css/hwslider.css"> <script src="//code.jquery.com/jquery.min.js"></script> <script src="js/jquery.hwSlider.min.js"></script>
2. Add a list of mixed html content into the slider as follows:
<div id="hwslider" class="hwslider">
<ul>
<li><img src="1.jpg" alt=""></li>
<li><a href="#"><img src="2.jpg" alt=""></a></li>
<li><h4>hwSlider.js</h4></li>
</ul>
</div>
3. Call the function to initialize the carousel slider with default options:
$("#hwslider").hwSlider();
4. Plugin's default configuration options:
$("#hwslider").hwSlider({
// width/height of the slider
width: 600,
height: 320,
// initial starting slide
start: 1,
// animation speed in ms
speed: 400,
// transition interval
interval: 3000,
// enable autoplay
autoPlay: false,
// shows pagination dots
dotShow: true,
// shows navigation arrows
arrShow: true,
// enable touch events
touch: true,
// callback
afterSlider: function(){}
});
This awesome jQuery plugin is developed by lrfbeyond. For more Advanced Usages, please check the demo page or visit the official website.










