Sticky-box is designed to make sidebar visible while scrolling. Both top and bottom edge is considered to position box. It can also handle boxes higher than window. jQuery is NOT required.
Install via bower
bower install angular-sticky-box
Add it as a dependency to your app and then use angular-sticky-box in your HTML files.
<div sticky-box>
<div>
<!-- sticky box content -->
</div>
</div>
It's important that sticky-box element and related content element has equal height. It can be achieved with css flex-box. See working example in /demo.
sticky-box-offset
: top offset in pixels. Useful when you have fixed header.
Install Gulp via npm if you don't have it
npm install -g gulp
gulp
: build and test the projectgulp build
: build the project and make new files indist
gulp serve
: start a server to serve the demo page and launch a browser then watches for changes insrc
files to reload the pagegulp test
: run testsgulp serve-test
: runs tests and keep test browser open for development. Watches for changes in source and test files to re-run the tests
MIT