choreography
Managers
Small modules that handle one page-wide behavior, such as scroll smoothing or hiding the header on scroll.
What’s here
Owned by ScrollEffectsCoordinator:
ReducedMotionHandler- watchesprefers-reduced-motionScrollSmootherManager- smooth scrolling, falling back to native scrollGelAnimationManager- drives the.gelbackground shapes
Created directly by AnimationDirector:
BadgeManager- hides and shows the header on scrollWorkHeaderManager,WorkNavManager- the Work section’s navigationProjectHeaderManager- project page header parallaxBuildInfoManager,SectionCapManager- section cap details and scrollspy
Used where needed: SessionManager (remembers a visit for the session) and RulerIntroManager.
How it connects
- The Director calls
kill()(ordestroy()for the scroll effects) on each manager at teardown. - Managers read settings from config.
See also
Modules
- BadgeManager
- Runtime manager — reveals the badge (cued by hero:intro:complete on home, immediately elsewhere), hides and shows it on scroll direction change, and opens its site-map dialog.
- BuildInfoManager
- Singleton manager for the section-cap build-info disclosure — a click-driven toggle that reveals/hides the build details (build-info.njk) beside the always-visible build <time>.
- GelAnimationManager
- Runtime manager — registry and lifecycle manager for background Gel controller instances, handling initialization, arrangement transitions, and teardown.
- index
- Managers barrel — re-exports all manager module classes from the managers layer.
- ProjectHeaderManager
- Runtime manager — applies a scroll-scrubbed parallax tween to the project page header image.
- ReducedMotionHandler
- Runtime manager — monitors the prefers-reduced-motion media query and notifies registered callbacks when the user's motion preference changes.
- RulerIntroManager
- Runtime manager — animates the SVG ruler baseline and tick marks into view on scroll using a GSAP timeline with ScrollTrigger.
- ScrollEffectsCoordinator
- Runtime manager — orchestrates site-wide scroll smoothing, gel background layers, and reduced-motion handling via specialized manager modules.
- ScrollSmootherManager
- Runtime manager — manages GSAP ScrollSmoother initialization, lifecycle, and accessibility-aware disabling on reduced-motion preference.
- SectionCapManager
- Section-cap scrollspy — tracks which `main > section` is at the current reading position.
- SessionManager.js
- Runtime manager — manages session state persistence in sessionStorage, tracking per-visit preloader status (hasVisited/markVisited), per-section entrance-animation played status (hasPlayed/markPlayed), and user interaction history. Exports SESSION_GATING_ENABLED (currently false): when off, has*() always return false and mark*() are no-ops, so the splash and every section intro replay on each visit. Exposes a getSessionManager() singleton factory; ad hoc lifecycle, not Director-constructed.
- WorkHeaderManager
- Runtime manager — drives the work section index <nav> as a non-modal bottom-sheet drawer below lg and a resting vertical rail at lg and up. The <nav> is position: fixed via Tailwind (inset-x-0 bottom-0 below lg, left-0 top-1/2 -translate-y-1/2 at lg+) and renders OUTSIDE #page-main-content, in base.njk's `sidebarBefore` slot, because ScrollSmoother transforms <main> and a fixed element inside a transformed ancestor is positioned against that ancestor rather than the viewport — same placement as the home landing header. This manager never positions the nav; it resolves the data-projects-el=\"jumplinks\" <nav> document-wide and slides it (handle bar + industry list + footer) as one unit via yPercent/y. The handle bar is the <nav>'s first child, <header data-projects-el=\"drawer-handle\">, whose <h2> renders as the data-projects-el=\"drawer-toggle\" <button> (aria-expanded + aria-controls=\"work-jumplinks\"). Responsive via gsap.matchMedia(): below lg the <nav> rests at { yPercent: 100, y: -handle.offsetHeight } so only the handle bar peeks above the viewport's bottom edge; tapping the heading opens (yPercent: 0, y: 0), the handle's label mirrors WorkNavManager's scrollspy, a click on any industry-link closes the drawer, Escape closes and returns focus, a click outside closes it — no focus trap. At lg and up the nav transform is cleared and the rail rests open. WorkNavManager's scrollspy (aria-current) is independent and untouched.
- WorkNavManager
- Runtime manager — scrollspy for the work section local in-page nav. Observes the industry groups with IntersectionObserver and reflects the group currently in view onto its jumplink via aria-current=\\\"true\\\". Broadcasts the active group id on AnimationBus (work:nav:active) so later breakpoint surfaces can react. Native anchors keep working with no JS; this only adds the active hint.