vcloading

simple page loading bar

Usage no npm install needed!

<script type="module">
  import vcloading from 'https://cdn.skypack.dev/vcloading';
</script>

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