Hi, everyone!
In this rep you can find everything you need to add beautiful preloader to your web page. This is customizable preloader with circular progress bar developed using vanilla js(ES6). Displays graphical and percentage page loading progress. To view follow the link: https://1ucius.github.io/preloader-with-circular-progress-bar/
To start using this preloader just link preloader.js and preloader.css files to your main html file. If you wanna change it's styles and animation duration you gotta change following values in "settings" in preloader.js:
- preloaderBackground - background color;
- progressSize - height and width of progress bar;
- progressColor - progress bar fill color;
- progressOpacity - progress bar opacity;
- textColor - percentage indicator text color;
- textOpacity - percentage indicator opacity;
- lineWidth - progress bar line width;
- lineCap - style of ending of the line('round', 'butt', 'square');
- preloaderAnimationDuration- ... :)
IMPORTANT !!!Difference between values "startDegree" and "finalDegree" should be less or 360 degrees and bigger or -360 degrees for correct display of loading progress!!!
- startDegree - angle in degrees where progress bar starts;
- finalDegree - angle in degrees where progress bar ends;
Good luck on the expanse of GitHub and sorry for my English:)