An open API service indexing awesome lists of open source software.

https://github.com/robiveli/jprogress

Simple slim lightweight(<2KB) JavaScript progress bar, good for visual loading indicator of callbacks, promises and similar stuff.
https://github.com/robiveli/jprogress

dependency-free javascript lightweight progress-bar simple ui vanilla-js

Last synced: 4 months ago
JSON representation

Simple slim lightweight(<2KB) JavaScript progress bar, good for visual loading indicator of callbacks, promises and similar stuff.

Awesome Lists containing this project

README

          

# jProgress #

Simple slim lightweight(<2KB) JavaScript progress bar, good for visual loading indicator of callbacks, promises and similar stuff.

### Install ###

With npm:
```
npm install jprogress
```

### Usage ###

Just include required JavaScript:
```

```

or
```
import jProgress from 'jProgress';
```

### Demo ###

Demo available [here](https://robiveli.github.io/jprogress/).

### Options ###

- **brandColor** *(default:#de6c4f)* - background color of progress bar
- **progressHeight** *(default:3)* - progress bar height
- **zIndex** *(default:9999)* - z-index value of progress bar
- **parent** *(default:body)* - parent container in which jProgress is appended

**Example**
```

jProgress.configure({

progressHeight: '5',
zIndex: '2'

}).start();

window.onload = function() {

jProgress.stop();

};

```

### API ###

`start()` - start progress

`stop()` - stop progress

`configure()` - set options

### License ###

jScrolly is licensed under the [MIT license](http://opensource.org/licenses/MIT).