Responsive Rotating Image Slider Plugin For jQuery easySlider - Download Responsive Rotating Image Slider Plugin For jQuery - easySlider

Download Responsive Rotating Image Slider Plugin For jQuery – easySlider

Posted on

This time I will share jQuery Plugin and tutorial about Responsive Rotating Image Slider Plugin For jQuery – easySlider, hope it will help you in programming stack.

Responsive Rotating Image Slider Plugin For jQuery easySlider - Download Responsive Rotating Image Slider Plugin For jQuery - easySlider
File Size: 29.2 KB
Views Total: 2020
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

easySlider is a simple, easy-to-use and fully responsive image carousel & slider plugin for jQuery that allows to loop infinitely over items when clicking next or previous button.

How to use it:

1. Load the necessary jQuery library and jQuery easySlider plugin’s script at the bottom of the html page.

1 <script src="//code.jquery.com/jquery-3.1.0.min.js"></script>
2 <script src="js/easySlider.js"></script>

2. Add your own images together with the pagination and navigation controls to the slider.

01 <div id="slider">
02   <ul class="slides clearfix">
03     <li><img class="responsive" src="1.jpg"></li>
04     <li><img class="responsive" src="2.jpg"></li>
05     <li><img class="responsive" src="3.jpg"></li>
06     <li><img class="responsive" src="4.jpg"></li>
07     <li><img class="responsive" src="5.jpg"></li>
08   </ul>
09   <ul class="controls">
10     <li><img src="img/prev.png" alt="previous"></li>
11     <li><img src="img/next.png" alt="next"></li>
12   </ul>
13   <ul class="pagination">
14     <li class="active"></li>
15     <li></li>
16     <li></li>
17     <li></li>
18     <li></li>
19   </ul>
20 </div>

3. The primary CSS styles for the slider.

01 /* core */
02 #slider {
03   width: 50%;
04   margin: 0 auto;
05 }
06  
07 /* Helpers*/
08 .responsive {
09   width: 100%;
10   height: auto;
11 }
12  
13 .clearfix:after {
14   content: "";
15   display: table;
16   clear: both;
17 }

4. Style & position the slider controls.

01 /* position controls */
02  
03 .controls li {
04   top: 50%;
05   margin-top: -30px
06 }
07  
08 .controls li:nth-child(1) { left: 0; }
09  
10 .controls li:nth-child(2) { right: 0; }
11  
12 /* style pagination */
13  
14 .pagination li { background-color: #ddd; }
15  
16 .pagination li.active { background-color: #000; }

5. Active the slider with one JS call.

1 $(function() {
2   $("#slider").easySlider({
3     // options here        
4   });
5 });

6. All configuration options.

01 $("#slider").easySlider({
02  
03   // animation speed
04   slideSpeed: 500,
05  
06   // autoplay
07   autoSlide: true,
08  
09   // pagination styles
10   paginationSpacing: "15px",
11   paginationDiameter: "12px",
12   paginationPositionFromBottom: "20px",
13  
14   // CSS selectors
15   controlsClass: ".controls",
16   slidesClass: ".slides",
17   paginationClass: ".pagination"    
18    
19 });

Change log:

2016-10-26

  • Add autoslide feature and refactor code.

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

source : jqueryscript.net