pre-progress

1.0.0 • Public • Published

#Progress Bar

##This is a simple progress bar on page load, this is important when working ajax on your page

  /*... TIP: You can passe a string color as the background color of the container, e.g,let progresbar = new Progresser("#fff"); default is white+transparence of 0.5 in rgba */ 
 let progresbar = new Progresser(); 
 // the progresser returns a resolved promise
 let promise = Promise.resolve();
 // passe the loader to the button click Event
 document.querySelector("button").addEventListener("click",()=>{
 // the promise is rosolved
 promise.then(()=>{
 // loader takes 1 parameter wich are numbers that are in milleseconds for the progressbar duration
 progresbar.loader(1000);})
});```

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.02latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.02

Package Sidebar

Install

npm i pre-progress

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

6.93 kB

Total Files

5

Last publish

Collaborators

  • zikama