vcloading
v1.0.5
Published
simple page loading bar
Downloads
1
Readme
vcloading
simple page loading bar
Install
#with npm
npm install vcloading
#with yarn
yarn add vcloading
# Or you can just copy the index.js to you project
Usage
// ES6 Import
import vcloading from 'vcloading';
// CommonJs
var vcloading = require('vcloading');
// global
var vcloading = window.vcloading;
The vcloading
object has two methods, start
and complete
.
| method | args | description |
|------|---------------|-------------|
| start | an object that contains two properties, barColor
and zIndex
| start the loading bar|
| complete | -- | complete the loading |