Home > Web Front-end > JS Tutorial > Implement progress bar display effect based on jQuery Bar Indicator plug-in_jquery

Implement progress bar display effect based on jQuery Bar Indicator plug-in_jquery

PHP中文网
Release: 2016-05-16 15:37:33
Original
1244 people have browsed it

Bar Indicator is a jQuery-based progress bar data display plug-in. It can be used in many scenarios such as data statistics display, voting statistics, and task progress. It is simple to use and has rich options, and can meet almost all users' WEB design needs based on progress bars. This article will explain the use of Bar Indicator with examples.


HTML

First load jQuery and Bar Indicator related js files and css files.

<link href="bi-style.css" rel="stylesheet" />
<script src="jquery.min.js"></script>
<script src="jquery-barIndicator.js"></script>
<script src="jquery.easing.1.3.js"></script>
Copy after login

Due to the use of animation buffering effects, remember to add the easing plug-in. You can download the source code package. These files are packaged. Then add HTML to :

<span id="bar">55lt;/span>
Copy after login

As you can see, the number 55 in the code represents the progress to be displayed by this progress bar. The default is 100. Of course, this number can also be used in the plug-in Defined when called.

jQuery

After preparing the html, then start calling the Bar Indicator. Just one line of code:

<script> $(&#39;#bar&#39;).barIndicator(); </script>
Copy after login

Isn’t it very simple, of course To meet your project needs, some settings are required, and Bar Indicator provides us with a wealth of option settings and event method calls, such as horizontal/vertical progress bars, progress bar colors, numerical display, progress value acquisition and reset, etc.

Options and Methods

Implement progress bar display effect based on jQuery Bar Indicator plug-in_jquery

Bar Indicator is very powerful, and there are many options that are not listed here.

The above is the content of the progress bar display effect_jquery based on the jQuery Bar Indicator plug-in. For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template