Usage 0. Import script <script src="path/to/ToProgress.min.js"></script> 1. Set options (The values below are default value) var options = { id: 'top-progress-bar', color: '#F44336', height: '2px', duration: 0.2 } 2. Get the progress bar instance var progressBar = new ToProgress(options); 3. Play it! progressBar.increase(20); API new ToProgress(options[,selector]) options id - the id of auto-creat