responsive image slider kslider - Download Ultra Small Responsive jQuery Image Slider - kslider

Download Ultra Small Responsive jQuery Image Slider – kslider

Posted on

This time I will share jQuery Plugin and tutorial about Ultra Small Responsive jQuery Image Slider – kslider, hope it will help you in programming stack.

responsive image slider kslider - Download Ultra Small Responsive jQuery Image Slider - kslider
File Size: 1.29 KB
Views Total: 2379
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

kslider is an ultra-small, fully responsive, easy-to-use, jQuery based slider created for presenting your images in an elegant way.

Features:

  • Auto adjusts the height/width depending on the screen size.
  • Auto shows/hides navigation arrows on hover.
  • Auto creates image captions from img’s alt attribute.
  • Auto transitions between images at a certain speed.
  • Infinite loop just like a carousel.

How to use it:

1. Add references to jQuery library and the kslider’s files as follows:

1 <link href="css/kslider.css" rel="stylesheet">
2 <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>
3 <script src="js/jquery.kslider.min.js"></script>

2. Insert your images to an HTML unordered list and define the image captions in the alt attribute.

01 <div id="kslider-wrapper" class="kslider-wrapper">
02   <ul class="kslider">
03     <li class="active">
04       <img src="1.jpg" alt="Image 1">
05     </li>
06     <li>
07       <img src="2.jpg" alt="Image 2">
08     </li>
09     <li>
10       <img src="3.jpg" alt="Image 3">
11     </li>
12     ...
13   </ul>
14 </div>

3. Initialize the slider with default options.

1 $(function(){
2  
3   $('.kslider').kslider({});
4  
5 });

4. Customize the transition speed. Default: 350ms.

1 $('.kslider').kslider({
2   animationSpeed: 500
3 });

5. Customize the autoplay interval. Default: 5000ms.

1 $('.kslider').kslider({
2   pause: 3000
3 });

6. Decide whether to show the navigation controls. Default: true.

1 $('.kslider').kslider({
2   navigation: true
3 });

7. Decide whether to show the image captions. Default: true.

1 $('.kslider').kslider({
2   description: true
3 });

8. Callback functions available.

1 $('.kslider').kslider({
2   beforeDisplay: function(e, hiddenElement){},
3   afterDisplay: function(e, visibleElement){}
4 });

This awesome jQuery plugin is developed by konfer-be. For more Advanced Usages, please check the demo page or visit the official website.

source : jquery.net