A simple ember addon to preview the scroll progress of the page.
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.
Note: Add the component in the application template to get the scroll preview for all the routes accessed inside the application.
offsetTop
to set the top offset based on the scroll container's top position inside the page.position
to 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
git clone <repository-url>
this repositorycd ember-scroll-preview
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"npm test
– Runsember try:each
to test your addon against multiple Ember versions
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.