Angular directive to hide or show header when user scroll down or up. Could use on infinite scroll pages
Check out the live demo.
$ bower install angular-hide-header --save
- Include angularHideHeader as a dependency for your app
angular.module('myApp', ['angularHideHeader'])
- Easy, add the directive to header element you want to hide or show.
<header hide-header>
...
</header>
```
> This is the most basic example.
Configuration
---
Add **hide-offset** to specify from which pixels from the top header will hide. Default value is 60.
hide-offset="80"
```html
<header hide-header hide-offset="80">
...
</header>