# Aerolab/midnight.js

Switch your nav's design on the fly

Repository: https://github.com/Aerolab/midnight.js
Canonical: https://ross.abutalabs.com/products/midnightjs
Homepage: http://aerolab.github.io/midnight.js/
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: javascript, midnight, css, ui
Last push: 2022-04-04T23:59:58+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4360, "days_push": 1612, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3648, forks 363 (observed 2026-08-28T04:08:12.994503+00:00)

## What it is
Midnight.js is a jQuery plugin that switches between multiple fixed header/nav designs as the user scrolls, based on data attributes on page sections. It automatically creates and swaps styled header variants so the nav always complements the content beneath it.

## Use cases
- switch nav design on scroll
- make fixed header change color per section
- scroll-aware header styling
- swap logo style as user scrolls past dark sections
- multiple header designs for one page

## When to choose
- you use jQuery and want a fixed header that adapts to section backgrounds
- you need per-section nav styling with minimal JavaScript

## When to avoid
- you don't use jQuery
- you need a modern framework (React/Vue) solution
- the project needs active maintenance or new features

## Facets
- artifact type: plugin
- maturity: maintenance
- function: ui-components, animation, frontend-framework
- domain: web-development, frontend, web-design
- platform: browser
- tags: jquery-plugin, fixed-header, scroll-effects, navigation, javascript, nodejs

## Member repositories
- Aerolab/midnight.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:12.994503+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:31:42.340881+00:00, confidence not recorded.
  - readme: https://github.com/Aerolab/midnight.js (fetched 2026-08-28T04:08:12.994503+00:00, sha 819c5ff3c3f4)
  - homepage: http://aerolab.github.io/midnight.js/ (fetched 2026-08-29T09:26:12.778851+00:00, sha 097927382bed)
  - registry_npm: https://registry.npmjs.org/midnight.js (fetched 2026-08-29T09:26:12.788739+00:00, sha 6ca6102805b0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
