1.0.5 • Published 7 years ago
vcloading v1.0.5
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 projectUsage
// 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 |