bar indicator is a jquery-based progress bar data display plugin,It can be used in many scenarios such as data statistics display, voting statistics, and task progress.It ’s simple to use and rich in options.It can meet almost all web design needs of users based on progress bar.This article will explain the use of bar indicator with examples.
First load the 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> </pre> </div> <p> Due to the use of animation buffer effects,Remember to add the easing plugin,You can download the source package,These files are all packed. Then add html to<body> ;: </p> <pre> <code> <span>55lt;/span>
See itThe number 55 in the code indicates the progress to be displayed by this progress bar.The default is 100. Of course, this number can also be defined when the plugin is called.
After preparing the html, and then start calling the bar indicator, just one sentence of code:
<script>$("#bar"). barindicator ();</script>
Is it very simple,Of course, to meet the needs of your project,You need to do some settings,The bar indicator provides us with rich option settings and event method calls.Such as horizontal/vertical progress bar, progress bar color, numerical display, progress value acquisition and reset.
Options and methods
The bar indicator is very powerful,There are many more options not listed here.The above introduction is about implementing the progress bar display effect based on the jquery bar indicator plugin.Please stay tuned for more content.
- Android implements ViewPager's Indicator example code
- 4 ways to implement Tab layout in Android (Fragment + TabPageIndicator + ViewPager)
- Teach you to make a cool ViewPagerIndicator in Android (not only mimics MIUI)
- Android use ViewPager + GridView to achieve page navigation bar layout
- TabHost and ViewPager in Android achieve homepage navigation effect
- BottomBar + ViewPager + Fragment for Android development to achieve a cool bottom navigation effect
- Android ViewPager making novice navigation page (dynamic loading)
- Usage of UIActivityIndicatorView in iOS and example of gear waiting animation
- Android change ExpandableListView indicator icon implementation method
- Android dynamically adds indicator navigation to ViewPager
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- python 3x - typeerror: 'method' object is not subscriptable
- i want to call a child component method from a parent in vuejs
- xcode - pod install [!] no `podfile 'found in the project directory
- dart - flutter: the instance member'stars' can't be accessed in an initializer error