0.2.0 • Published 8 years ago
ember-scroll-preview v0.2.0
ember-scroll-preview
A simple ember addon to preview the scroll progress of the page.
Overview
Based on the page's scroll, the current view port position is highlighted and shown on the image of the entire page. This addon uses html2canvas to take screenshot of the whole page once it is rendered.
Installation
ember install ember-scroll-previewUsage
{{#ember-scroll-preview
position="top-right"
offsetTop=85
}}
<!-- application content -->
{{outlet}}
{{/ember-scroll-preview}}Note: Add the component in the application template to get the scroll preview for all the routes accessed inside the application.
Parameters
offsetTopto set the top offset based on the scroll container's top position inside the page.positionto specify the position of the scroll preview container.
Available positions,
top left top-left left-top
bottom bottom-left left-bottom
right top-right right-top
bottom-right right-bottom
Collaborating on this project
Installation
git clone <repository-url>this repositorycd ember-scroll-previewnpm install
Running the dummy app
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/.