Skip to main content

choreography

Lifecycle

The order motion happens in: the boot gate, the four phases every section shares, and the events each phase emits.

Boot

  1. AnimationDirector boots when the page is idle, builds the bus, the scroll effects, and one controller per section.
  2. It fires director:ready. The preloader fires preloader:out when its splash is done.
  3. LandingSequence waits for both, then plays the landing animation. Nothing bypasses this gate.

Rules every animation follows:

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:

KeyTimeline id
landinglanding
introintro
idleidle
outrooutro

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:

KeyEvent
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