Skip to main content

molecules

overview-gel

Hero molecule part — anchors the gel_subheading gel behind the hero overview <h3> as a full-bleed band (viewport width, heading height, heading y) and keeps it synced on scroll and resize. The gel is never ScrollTrigger-pinned: it is a child of the fixed-positioned #sizzle-background container, so it is already held in the viewport.

attachOverviewGel(view, gelManager) resolves gel_subheading from the
manager (the gel element’s DOM id predates this rename — left as-is since the
template/background layer wasn’t asked to change) and [data-hero-el="overview"]
from the hero section root, then positions the gel to left: 0 / width: 100vw / top: <overview heading viewport top> / height: <overview heading height> and
reveals it (autoAlpha: 1 — GelAnimationManager parks every gel at 0).

The gel is absolute inside #sizzle-background, which is fixed inset-0, so
its coordinates resolve against the viewport and no scroll offset is added to
top. A fixed container does not scroll with the heading, so a ScrollTrigger
(id: hero-overview-gel-sync, top bottom → bottom top) re-syncs on
onUpdate / onRefresh / onToggle. The trigger is killed by id before being
recreated, so matchMedia/resize rebuilds do not stack duplicates.

This band tracks scroll, and that
is deliberate: it is a text-height band whose
whole job is to stay behind a <h3> that travels through the viewport. The
per-tick getBoundingClientRect() is the cost of that.

Suspend contract

suspendOverviewGelSync(view) / resumeOverviewGelSync(view) (module-level
WeakSet, keyed on view) gate sync().
mission-statement.js uses them: its reveal wipes the band
in (scaleX 0 → 1) and sync() would reset both scaleX and autoAlpha on the
next scroll tick. It suspends before building, and the wipe’s own onComplete
resumes and force-refreshes by OVERVIEW_SYNC_ST_ID.

Suspension defers, it does not discard. A sync() called while suspended
records that one is owed (a pending WeakSet) and resume runs it immediately
via the live closure in a syncs WeakMap. This band is suspended from intro
build until the reader scrolls far enough to trigger the wipe — potentially the
whole session. Dropping resizes across that window left the band pinned to its
load-time geometry permanently.

getOverviewGelEl(gelManager) exports the resolved element so callers don’t
duplicate the getGel(OVERVIEW_GEL_ID) lookup.

attachOverviewGel is no longer called from split.js directly — the
mission-statement reveal owns the call, since the band’s arrival is that
reveal’s first beat.

Never pinned

“Anchors” is positional language, not ScrollTrigger’s pin. This gel is a
child of #sizzle-background (fixed inset-0) — already viewport-positioned,
so it must never be a pin target. hero-overview-gel-sync sets no pin
(defaults false); it only rewrites top/height.

gel.refresh() (SVG mask re-measure) runs only when the heading height
changes, not on every scroll tick.

Visibility caveat: .gel sets mix-blend-mode: multiply. Against a very
dark backdrop inside #sizzle-background the band can read as near-invisible;
force
mixBlendMode: "normal" on the gel element if that happens.

Reduced motion

The profile system swaps hero to the reduced variant, which does not call this. The band is a static positioned state, not an animation.