This time I will share jQuery Plugin and tutorial about Responsive Dynamic Content Slider With jQuery, hope it will help you in programming stack.
This is a dynamic, flexible, fully responsive slider/carousel built with jQuery that automatically loops through a series of slides containing a variety of content (e.g. images, text, buttons) stored in a JSON file.
How to use it:
1. Create the html template for the slider.
03 |
< div class = "slider__wrapper" > |
06 |
< div class = "slider__tracker" > |
2. Add a loading spinner to the slider.
1 |
< div class = "loader" id = "loader" > |
2 |
< img src = "img/loader.gif" alt = "Loading..." > |
3. Load jQuery library and other required resources in the document.
1 |
< link rel = "stylesheet" href = "css/style.css" > |
3 |
integrity = "sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" |
4 |
crossorigin = "anonymous" ></ script > |
5 |
< script src = "js/app.js" ></ script > |
4. Add your own content to the slider as you see in the data.json
08 |
"src" : "img/img-1.jpg" , |
09 |
"text" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco. " , |
11 |
"title" : "This is a first slide!" |
16 |
"src" : "img/img-2.jpg" , |
17 |
"text" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis. " , |
18 |
"btn" : "Second slide" , |
19 |
"title" : "This is a second slide!" |
24 |
"src" : "img/img-3.jpg" , |
25 |
"text" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut . " , |
27 |
"title" : "This is a third slide!" |
32 |
"src" : "img/img-4.jpg" , |
33 |
"text" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi. " , |
34 |
"btn" : "Fourth slide" , |
35 |
"title" : "This is a fourth slide!" |
Changelog:
2019-03-04
2019-03-02
This awesome jQuery plugin is developed by clickad. For more Advanced Usages, please check the demo page or visit the official website.