jquery.fixed-header
v1.2.2
Published
Add jquery function for fixed header and depended objects
Downloads
240
Keywords
Readme
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: {}
});