Elegant Loading Indicator jQuery Preloader - Download Elegant Customizable Loading Indicator For jQuery - preloader

Download Elegant Customizable Loading Indicator For jQuery – preloader

Posted on

This time I will share jQuery Plugin and tutorial about Elegant Customizable Loading Indicator For jQuery – preloader, hope it will help you in programming stack.

Elegant Loading Indicator jQuery Preloader - Download Elegant Customizable Loading Indicator For jQuery - preloader

File Size: 90.3 KB
Views Total: 12494
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

preloader.js is a simple, lightweight jQuery loading indicator plugin to create content loaders and preloaders while data in a specific area is loading. With support for custom loading text, percentage value, and duration.

How to use it:

1. The plugin requires the latest version of jQuery library loaded properly in the document.

2         integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
3         crossorigin="anonymous">
4 </script>

2. Load the jQuery preloader.js plugin’s JavaScript and Stylesheet in the document.

1 <link rel="stylesheet" href="preloader.css">
2 <script src="jquery.preloader.min.js"></script>

3. The JavaScript to show a loading indicator on a specific element.

1 $('.someBlock').preloader();

4. Config the loading indicator with the following options.

01 $('.someBlock').preloader({
02  
03   // loading text
04   text: '',
05  
06   // from 0 to 100
07   percent: '',
08  
09   // duration in ms
10   duration: '',
11  
12   // z-index property
13   zIndex: '',
14  
15   // sets relative position to preloader's parent
16   setRelative: false
17    
18 });

5. API methods.

1 // remove the loading indicator
2 $('.someBlock').preloader('remove')
3  
4 // up<a href="https://www.jqueryscript.net/time-clock/">date</a> the loading indicator
5 $('.someBlock').preloader('update', {
6   percent: '70',
7   text: 'example',
8   // more options here
9 });

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

source : jqueryscript.net