Ultra light jQuery Content Slider Plugin basicSlider - Download Ultra-light jQuery Content Slider Plugin - basicSlider

Download Ultra-light jQuery Content Slider Plugin – basicSlider

Posted on

This time I will share jQuery Plugin and tutorial about Ultra-light jQuery Content Slider Plugin – basicSlider, hope it will help you in programming stack.

Ultra light jQuery Content Slider Plugin basicSlider - Download Ultra-light jQuery Content Slider Plugin - basicSlider
File Size: 3.77 KB
Views Total: 1160
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

This is a lightweight, simple-to-use jQuery slider which helps you create a basic slider / carousel UI from an unordered list of web content. The slider will automatically slide to next slide content in every 3 seconds. Also comes with a loading element which indicates the remaining delay time.

How to use it:

1. Insert a list of web content together with the navigation controls into the webpage.

01 <div id="slider">
02  
03   <!-- Loading element -->
04   <div class="loading"></div>      
05  
06   <!-- Left arrow -->    
07   <div class="arrow arrow-left"></div>
08  
09   <!-- Slides -->
10   <ul class="slides">
11     <li class="slide slide1"></li>
12     <li class="slide slide2"></li>
13     <li class="slide slide3"></li>
14     <li class="slide slide4"></li>
15     <li class="slide slide5"></li>
16     <li class="slide slide6"></li>              
17   </ul>
18  
19   <!-- Right arrow -->
20   <div class="arrow arrow-right"></div>
21    
22 </div>

2. The main CSS styles for the slider.

01 <div id="slider">
02  
03   <!-- Loading element -->
04   <div class="loading"></div>      
05  
06   <!-- Left arrow -->    
07   <div class="arrow arrow-left"></div>
08  
09   <!-- Slides -->
10   <ul class="slides">
11     <li class="slide slide1"></li>
12     <li class="slide slide2"></li>
13     <li class="slide slide3"></li>
14     <li class="slide slide4"></li>
15     <li class="slide slide5"></li>
16     <li class="slide slide6"></li>              
17   </ul>
18  
19   <!-- Right arrow -->
20   <div class="arrow arrow-right"></div>
21    
22 </div>

3. Style the next/right navigation:

01 .arrow {
02   height: 480px;
03   width: 50px;
04   background: rgba(255,255,255,0.0);
05   z-index: 99;
06 }
07  
08 .arrow:hover { background: rgba(255,255,255,0.3); }
09  
10 .arrow-left {
11   top: 0;
12   left: 0;
13   position: absolute;
14 }
15  
16 .arrow-right {
17   top: 0;
18   right: 0;
19   position: absolute;
20 }

5. Place jQuery library and the core JavaScript file app.js at the bottom of the page.

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <script src="app.js"></script>

6. Initialize the slider and done.

1 $('#slider').basic<a href="https://www.jqueryscript.net/slider/">Slider</a>();

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

source : jqueryscript.net