npm.io
0.3.0 • Published 9 years ago

sticky-header

Licence
MIT
Version
0.3.0
Deps
0
Vulns
0
Weekly
0
Stars
16

###Usage:

// commonjs
var sticky = require('sticky-header');
	
// or directly include the script then 'sticky' will be global
	
var nav = document.getElementById('nav')
// make '.nav' stick to the top
sticky(nav);

// make '.nav' stick to top 100px
sticky(nav, 100);

###Example: See http://ltebean.github.io/sticky-header

Keywords