1.0.0 • Published 5 years ago

pre-progress v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

#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);})
});```