Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovanzyl committed Jan 9, 2015
1 parent db22081 commit 78b2b6a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# readingbar (jQuery plugin)
A simple progress bar that indicates the length & your current reading position of an article/page

[Here's a demo](http://codepen.io/WixelHQ/pen/bNBzZx)

### Adding it to your site
``` js
// select the element you wish to track (ie. in a blog post target only the container of the actual post content)
$('.article').readingbar();
```

### Options
``` js
// you can set the height and the color of the bar.
$('.article').readingbar({
height: '10px',
backgroundColor: '#22252C'
});
```

0 comments on commit 78b2b6a

Please sign in to comment.