sticky-header

0.3.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    36
    • latest

Version History

Package Sidebar

Install

npm i sticky-header

Weekly Downloads

3

Version

0.3.0

License

MIT

Last publish

Collaborators

  • ltebean