Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

surielmx/angular-hide-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Hide Header

Angular directive to hide or show header when user scroll down or up. Could use on infinite scroll pages

Demo

Check out the live demo.

Installation

via bower:

$ bower install angular-hide-header --save

Usage

  1. Include angularHideHeader as a dependency for your app
angular.module('myApp', ['angularHideHeader'])
  1. 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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published