Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/chemzqm/nanobar

A progress bar at the very top of a webpage.
https://github.com/chemzqm/nanobar

Last synced: about 1 month ago
JSON representation

A progress bar at the very top of a webpage.

Awesome Lists containing this project

README

        

# Nanobar

A progress bar at the very top of a webpage.

VIEW DEMO:

## Installation

Install with [component(1)](http://component.io):

$ component install chemzqm/nanobar

## API

```
var Nanobar = require('nanobar');
```
### new Nanobar([parent]);

append nanobar to parentNode (default to document.body);

### Nanobar#update(number)

Goto a certain percent of progress.

```
nanobar.update(30)
```

### Nanobar#dismiss()

Remove this nanobar.

### Nanobar#infinite()

Make the progress bar infinite.

## License

MIT