0.5.0 • Published 8 years ago
ember-scroll-progress v0.5.0
ember-scroll-progress
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.
Usage
{{#ember-scroll-progress
height=5
color="red"
reduceOffsetTopBy=85
}}
<!-- page content -->
{{/ember-scroll-progress}}Parameters
heightto customize the the height of the progress bar.colorto provide a customizable color/color code for the progress bar.reduceOffsetTopByto set the top offset based on the scroll container's top position inside the page.
Installation
git clone <repository-url>this repositorycd ember-scroll-progressnpm install
Running
ember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:eachto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.