@pinguinosod/loading-bear
v2.2.4
Published
lightweight progress bar, runs for a desired duration.
Downloads
10
Maintainers
Readme
Loading Bear
A lightweight progress bar which runs for a desired duration.
Examples
Installation
CDN
<script src="https://cdn.jsdelivr.net/npm/@pinguinosod/loading-bear@2/dist/loading-bear.min.js"></script>
npm
$ npm i @pinguinosod/loading-bear
Usage
Execute the function:
loadingBear();
Options
You can send an options object as parameter to the loadingBear function:
loadingBear({
'duration': 3200, // The duration in milliseconds
'height': '20px', // The height of the progress bar
'lBearContainerClass': 'container', // Container element's class
'lBearClass': 'progress', // Wrapper bar element's class
'lBearInnerClass': 'progress-bar' // Inner bar element's class
});
License
MIT