choreography
Lifecycle
The order motion happens in: the boot gate, the four phases every section shares, and the events each phase emits.
Boot
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.
The modules involved: AnimationDirector, AnimationBus, the section registry, and LandingSequence.
Phases
Every section controller extends AbstractSection and owns one timeline per phase. The phase names are TIMELINE_IDS:
| Key | Timeline id |
|---|---|
landing | landing |
intro | intro |
idle | idle |
outro | outro |
Events a section emits
Event names follow section:phase:state. makeSectionEvents builds the same set for every section, so no name is typed by hand:
| Key | Event |
|---|---|
enter | <section>:enter |
exit | <section>:exit |
onEnterBack | <section>:onEnterBack |
onLeaveBack | <section>:onLeaveBack |
landingStart | <section>:landing:start |
landingComplete | <section>:landing:complete |
introStart | <section>:intro:start |
introComplete | <section>:intro:complete |
outroStart | <section>:outro:start |
outroComplete | <section>:outro:complete |
The full list, including system and video events, is on the Events page.
How it connects
- Built by esbuild from
AnimationDirector.jsintoassets/js/choreography/bundle.js. - Waits on the preloader before playing.
- Uses effects/gel for the liquid background shapes.
- Run
window.directorin the browser console to inspect sections or replay the sequence.