A lightweight (2.2 KB), no-dependency top progress bar library.
http://djyde.github.io/ToProgress
var options = {
color: '#EEE',
duration: 0.2,
height: '2px'
}
var topbar = new ToProgress(options);
If you are using ToProgress.js in production, just tell us.
options
top
or bottom
selector - valid css selector, if is defined, progress bar will be put on the top of the element. Only find the first element.
return current progress (percentage number)
MIT License