ember-scroll-progress

0.5.0 • Public • Published

ember-scroll-progress

npm version Build Status

A simple ember addon component for displaying an amount a page is scrolled via a progress bar. Scroll the page to view this page's progress on top.

DEMO

Usage

 
  {{#ember-scroll-progress
    height=5
    color="red"
    reduceOffsetTopBy=85
  }}
    <!-- page content -->
  {{/ember-scroll-progress}}
 

Parameters

  • height to customize the the height of the progress bar.
  • color to provide a customizable color/color code for the progress bar.
  • reduceOffsetTopBy to set the top offset based on the scroll container's top position inside the page.

Installation

  • git clone <repository-url> this repository
  • cd ember-scroll-progress
  • npm install

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

Readme

Keywords

Package Sidebar

Install

npm i ember-scroll-progress

Weekly Downloads

1

Version

0.5.0

License

MIT

Last publish

Collaborators

  • gowthamrm