1.2.2 • Published 4 years ago

jquery.fixed-header v1.2.2

Weekly downloads
7
License
-
Repository
github
Last release
4 years ago

jquery.fixed-header.js

jQuery script to add fixed header functionality

Install

$ npm install -S jquery.fixed-header.js

*Requires Node.js 4+

Usage

Include the script in your page.

<script src="node_modules/jquery.fixed-header/jquery.fixed-header.js"></script>

Now you can activate the script by simply add the call to your header.

$('.header').fixed();

Options

There are also some options that can be set. Simply add an object to the function call.

$('.header').fixed({
  toAnchor: 'scroll',
  onLoadAnchor: 'jump',
  onChangeAnchor: 'jump',
  offset: 50,
  class: 'header--fixed',
  objects: {}
});
1.2.2

4 years ago

1.2.1

6 years ago