Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A progress bar that fills up as you scroll down the page
JavaScript CoffeeScript
branch: master
Failed to load latest commit information.
demo round one
src round one
README.md add demo to readme
bower.json round one
index.js round one
package.json round one

README.md

Scroll Fever

A progress bar that fills up as you scroll down the page in your browser. Demo at zeke.github.io/scroll-fever.

Installation

npm install scroll-fever --save

Usage

In your application's javascript file:

// pre-browserify.js
var ScrollFever = require('scroll-fever')
new ScrollFever()

Add styles:

#scroll-fever {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 6px;
  background: red;
}

Use browserify to bundle it up for the browser:

browserify pre-browserify.js -o post-browserify.js

Demo

Visit zeke.github.io/scroll-fever, or clone the repo and look in the demo directory.

Something went wrong with that request. Please try again.