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);
- IE >= 10
- Chrome
- Firefox
- Safari
If you are using ToProgress.js in production, just tell us.
-
options
- id - the id of auto-created progress bar element
- color - progress bar color
- height - progress bar height
- duration - increase duration (seconds)
- position - the progress bar position.
top
orbottom
-
selector - valid css selector, if is defined, progress bar will be put on the top of the element. Only find the first element.
- progress - percentage number
- progress - percentage number
- progress - percentage number
return current progress (percentage number)
MIT License