choreography
Choreography
The living reference for the site's choreography: how it runs, the contracts and values it shares, and a page for every module, each read from the file the site runs.
This is the choreography system as the site actually runs it. Nothing here is written twice. Each module page is the module's own sidecar, the file next to its code under js/choreography/. The contract and tuning pages are read from the config modules at build time, and each page's "Built from" and "Used by" lists come from the code's imports.
How it runs
AnimationDirectorboots when the page is idle, builds the bus, the scroll effects, and one controller per section.- It fires
director:ready. The preloader firespreloader:outwhen its splash is done. LandingSequencewaits for both, then plays the landing animation. Nothing bypasses this gate.
Rules every animation follows:
- Sections talk through
AnimationBusevents, never by calling each other. - JS finds elements through
data-*-elattributes, not CSS classes. - Every ScrollTrigger animation has a reduced-motion branch.
What's here
- System: the lifecycle every section follows (Lifecycle); the contracts the code shares (Events, Selectors, Presets, Profiles, Motion tokens); and the core and supporting layers.
- A section per layer, from the smallest pieces up:
| Layer | Modules | What it holds |
|---|---|---|
| Tokens | 2 | The primitive motion values every preset and atom derives from. Nothing here |
| animates or touches the page; it is plain data. | ||
| Atoms | 8 | The smallest motion pieces: each one builds a single GSAP animation from a few options. |
| Molecules | 30 | Compositions of atoms that make one recognisable piece of motion: a hero |
| intro, a card's scroll behaviour, a group of items revealing in turn. Most | ||
| are factories that return a GSAP timeline and leave playing it to the caller. | ||
| Organisms | 23 | A page section's motion, as one unit. Each folder holds a controller that |
extends AbstractSection, an animations module that builds its timelines, | ||
| and a triggers module that holds its ScrollTrigger settings. | ||
| Templates | 2 | Choreography for a whole page: what plays first, what waits for what. |
| Pages | 1 | Animations for pages that are not part of the homepage sections. Today that is Project/, the intro for a project page. |
| Navigation | 1 | Page-to-page transitions: play an outro, then navigate. Not currently loaded |
| by the site. | ||
| Managers | 13 | Small modules that handle one page-wide behavior, such as scroll smoothing or hiding the header on scroll. |
| System | 12 | The runtime core every section is built on. Nothing here animates anything |
| by itself; it provides the lifecycle, the bus and the GSAP setup that the | ||
| other layers use. | ||
| Config | 23 | Names, motion settings, and defaults shared across the choreography code. Nothing here touches the page. |
How the system handles reduced motion is on the Accessibility page. Every motion token is on the design system's motion tokens page: the duration and easing curves, and the groups that exist only in the choreography.
Changing this reference
See Maintenance.