FindSoftware

Headroom.js

JavaScript widget that hides a page header while the user scrolls down and shows it again when they scroll up.

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

Install with
npm15

Releases

Current major version
Pre-1.06
Last release
2020-10-166

Adoption

GitHub stars
10,8427
npm downloads a week
45,0669
Contributors
278
Dependent repositories
1,49210
Dependent packages
4810

Why these figures do not compare

Sources

  1. 2026-11-09: links, Install with
    wicky.nillia.ms/headroom.js/
  2. 2026-11-09: links, Written in
    github.com/WickyNilliams/headroom.js
  3. 2026-11-09: Maintainer, Maintained by
    github.com/WickyNilliams/headroom.js/blob/master/LICENSE
  4. 2026-11-09: First release
    api.github.com/repos/WickyNilliams/headroom.js/commits/v0.3.9
  5. 2026-11-09: Categories, Install with, License, License model
    github.com/WickyNilliams/headroom.js/blob/master/README.md
  6. 2026-11-09: Current major version, Last release
    registry.npmjs.org/headroom.js
  7. 2026-11-09: GitHub stars
    api.github.com/repos/WickyNilliams/headroom.js
  8. 2026-11-09: Contributors
    api.github.com/repos/WickyNilliams/headroom.js/contributors?per_page=1
  9. 2026-11-09: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/headroom.js
  10. 2026-11-09: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/headroom.js

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON