sh

sticky-header

pure javascript implementation that makes an element stick to the top when scrolling down the page

Showing:

Popularity

Downloads/wk

14

GitHub Stars

16

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

###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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100