Headroom.js
JavaScript widget that hides a page header while the user scrolls down and shows it again when they scroll up.
wicky.nillia.ms/headroom.js/repositorydocs
Headroom.js hides a page’s header while the user scrolls down and shows it again on scroll up. It is written in JavaScript and has no dependencies. A page creates a Headroom instance for a header element and calls its init method; CSS classes for the pinned and unpinned states move the header in and out of view. The documentation site lists the methods, including freeze and unfreeze, which stop and resume the scroll response. It has a pure JavaScript API plus an optional jQuery plugin and AngularJS directive. The package is installed from npm or yarn, or loaded from unpkg.com for script tags.
Identity
- Status
- Stub
- Maintainer
- Nick Williams3
- Maintained by
- Individual3
- First release
- 20134
Rendering and deploy
Releases
Adoption
Sources
- 2026-11-09: links, Install with
wicky.nillia.ms/headroom.js/ - 2026-11-09: links, Written in
github.com/WickyNilliams/headroom.js - 2026-11-09: Maintainer, Maintained by
github.com/WickyNilliams/headroom.js/blob/master/LICENSE - 2026-11-09: First release
api.github.com/repos/WickyNilliams/headroom.js/commits/v0.3.9 - 2026-11-09: Categories, Install with, License, License model
github.com/WickyNilliams/headroom.js/blob/master/README.md - 2026-11-09: Current major version, Last release
registry.npmjs.org/headroom.js - 2026-11-09: GitHub stars
api.github.com/repos/WickyNilliams/headroom.js - 2026-11-09: Contributors
api.github.com/repos/WickyNilliams/headroom.js/contributors?per_page=1 - 2026-11-09: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/headroom.js - 2026-11-09: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/headroom.js