jQuery Top Loading Animation Plugin loadBar.js
Add-ons

Plugin Description: loadBar is a lightweight jQuery plugin (only 2 KB at minimum) that displays an elegant animated bar at the top of the page while content is loading.
How to Use loadBar
1. Include the Plugin
1 2 | <script src="//code.jquery.com/jquery-3.1.1.slim.min.js"></script><script src="jquery.loadBar.js"></script> |
2. Hide and Show
1 2 | loadBar.trigger('show');loadBar.trigger('hide') |
3. Available Options
1 2 3 4 5 6 7 8 9 10 11 | // main colorloadBar.mainColor = 'red'; // strip colorloadBar.stripColor = 'green'; // animation speedloadBar.barSpeed = 5; // bar heightloadBar.barHeight = 5; |
评论