You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scenes/registry.ts: an ordered array of { id, Component, animation?: SceneAnimation }, starting with 9 colored placeholders. Section tickets swap in their real component with a one-line change.
scenes/ScrollStage.tsx (client):
Recommended approach: one master ScrollTrigger over a tall spacer, with every scene stacked in a fixed viewport stage. Each scene gets a [start, end] range from motionSpec.tsscrollLength, and its enter overlaps the previous scene's tail. Scenes outside their range are visibility: hidden.
The master GSAP timeline runs enter then build for each scene, in order.
The last scene (FAQ) is unpinned: after the stage, normal document flow continues.
useActiveScene() context (the Header gets wired to it in MS-301).
scrollToScene(id, { immediate }): scrolls to a scene's resting point via lenis.scrollTo. Deep links on load use immediate.
Rebuilds on breakpoint change and debounced resize; kills its triggers on unmount; doesn't initialize below 640px.
Uses svh units and ScrollTrigger.config({ ignoreMobileResize: true }) for tablets.
scenes/transitions.ts:fogWipe, crossfade, zoomThrough, curtain, pan. Each takes (tl, prevRoot, root, opts) and starts from the previous scene's exitColor. Each has a harness demo (/dev/scenes?transition=fogWipe) and JSDoc explaining its options.
(landing)/page.tsx renders ScrollStage behind ?stage=1 until MS-301 switches it on. S3 animation tickets verify there.
(v3) Point the Header/Footer at lib/content/site.ts and delete MS-101's temporary lib/siteConfig.ts.
Acceptance criteria
9 placeholder scenes play in order through all 5 transition types, forward and back
useActiveScene() is correct in both directions
scrollToScene and deep links land on the exact resting state
Rebuilds cleanly between 1512 and 1000; 60fps with placeholders
Activity