ProBar is a progress bar with multiple options.
- config a ProBar color.
- config a ProBar background.
- config a Speed of ProBar.
- config a "Goto" option with timing.
- cutomize with your own CSS.
ProBar require JQuery.
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script src="/your/path/to/ProBar.js"></script>
var probar = new ProBar(options);
{
color : "#2a2a2a", // color of the Progress bar.
bgColor : "#efefef", // color background of the Progress bar
speed 0.3, // speed of animation. ( unit in secondes )
wrapper : "body" // the wrapper who append ProBar. if class ".class" ,if id "#id"
}
probar.setColor("#2980b9"); // change color of ProBar.
probar.setWrapperColor("#ecf0f1"); // change background color of ProBar.
probar.setSpeed(3000); // change Speed to 3 secondes.
probar.goto(100); // reach 100%.
probar.goto(100,2000); // reach 100% in 2 secondes.
- Add Multiple Instantiation.
- Remove JQuery requirement.
MIT