Skip to main content

organisms

Hero

Hero section controller — manages lifecycle and bus coordination for the hero/introduction section.

Standard AbstractSection controller, with two deliberate departures from the base.

Scroll does not drive playback

_onEnter / _onEnterBack are overridden to emit their events (cross-section
side effects depend on them) but not call playIntro. Hero’s reveal is
time-based — it fires once off the landing chain (see
LandingSequence) — so the base
class’s scroll-driven replay would restart the animation mid-scroll.

Resize settles played phases

Because the reveal fires once and never again, a resize that strips or re-parks
its inline styles would leave the section stuck. Two paths guard that:

_settleRevealToEnd jumps both the landing and intro timelines to
progress(1), each gated on its own request flag (_landingRequested /
_introRequested) so a resize between the two requests settles landing without
asserting an intro nobody has asked for yet.

Today the landing flag stays unset: LandingSequence no longer calls
playLanding(), and the landing timeline is empty — hero owns no full-bleed gel
(gel_video belongs to BackgroundVideo). Only the intro needs settling.

Statement SVGs

Each statement’s inline SVG reveal is played by HeroTriggers when the
statement figure’s bottom reaches the bottom of the viewport. The statements are not pinned
(see HeroAnimations).

Reduced motion

When lifecycle motion is disabled, no triggers or timelines play. _applyResponsiveLifecycle then calls animations.showStatementSvgs() to show all statement SVG groups at rest. Reduced motion is one cause; the session replay gate also disables lifecycle motion and takes the same path.