Module Description
What's it all about? Headroom.js is a lightweight, high-performance JS widget that allows you to react to the user's scroll.

Why use it? Fixed headers are a popular approach for keeping the primary navigation in close proximity to the user. This can reduce the effort required for a user to quickly navigate a site, but they are not without problems.

Large screens are usually landscape-oriented, meaning less vertical than horizontal space. A fixed header can therefore occupy a significant portion of the content area. Small screens are typically used in a portrait orientation. Whilst this results in more vertical space, because of the overall height of the screen a meaningfully-sized header can still be quite imposing.

Headroom.js allows you to bring elements into view when appropriate, and give focus to your content the rest of the time.

How to use Drupal 7 (not released)
See this issue for patch development: #2324691: plugin not detected (7.x) . 7.x patches welcome here.


* Download the Headroom.js source files to sites/all/libraries/headroomjs. Note that there are four files.
* Download and enable the Headroom.js module
* Configure the settings at admin/config/system/headroomjs
* Add style to your header for more flair (no CSS provided)

Drupal 8
Note module version 8.x-1.0-beta2 or above is required to match new file structure of the library.


* Download the Headroom.js zip from GitHub: https://github.com/WickyNilliams/headroom.js
* Unzip into /libraries in your docroot, rename the folder headroomjs
* Download https://unpkg.com/headroom.js and put it at /libraries/headroomjs/headroom.js
* Enable Headroom.js module using the modules page or Drush. (A warning message will appear if files are not located)

Headroom.js will attach to the page (if enabled in settings) to the HTML element specified.

No CSS is provided, so you will still need to add position and display on headroom classes.

See for more detail: http://wicky.nillia.ms/headroom.js/

Project Usage
58
Creation Date
Changed Date
Security Covered
Not Covered By Security Advisory
Version Available
Production
Module Summary
Headroom.js is a lightweight, high-performance JS widget that allows you to react to the user's scroll and bring elements into view when appropriate, giving focus to content.
Data Name
headroomjs

OPENAI CHATBOT

OPENAI CHATBOT

14:28:35
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.