How mahendra4593/avengers-doomsday works
AVENGERS: DOOMSDAY is a single-page, scroll-directed cinematic experience. A visitor scrolls through an intro and trailer, a 3D character showcase, story panels, a horizontal scene reel, and a battle-to-title finale. The Experience component orchestrates the scroll timeline and writes shared signals; DOM overlays and a transparent WebGL scene render the resulting motion. The README documents capabilities beyond the sampled excerpts; edges to those stages cite that documentation, while implementation details are limited to indexed or excerpted source.
Main entry points: Experience.tsx Scroll director · CinematicCanvas.tsx Atmosphere canvas · signals.ts Motion signals · page.tsx Experience page
Components 27
Scroll orchestration
- Experience page
app/page.tsx - Scroll director
components/Experience.tsx - Smooth scrolling
lib/useLenis.ts
Cinematic stages
- Scrubbed trailers
components/overlays/VideoLayer.tsx - Cinematic text
components/overlays/CinematicText.tsx - Flash overlay
components/overlays/FlashOverlay.tsx - Character orbit
components/overlays/CharacterOrbit.tsx - Story panels
components/overlays/StoryStack.tsx - Horizontal reel
components/overlays/HorizontalReel.tsx - Battle finale
components/Experience.tsx - MCU timeline
components/overlays/TimelineImage.tsx - Title reveal
components/overlays/TitleReveal.tsx
WebGL atmosphere
- Doom showcase
components/webgl/showcase/Showcase.tsx - Doom model
components/webgl/showcase/DoomModel.tsx - Atmosphere canvas
components/webgl/CinematicCanvas.tsx - Camera rig
components/webgl/CameraRig.tsx - Particle field
components/webgl/ParticleField.tsx - Lightning
components/webgl/Lightning.tsx - Volumetric fog
components/webgl/VolumetricFog.tsx - Portal
components/webgl/Portal.tsx - Sparks
components/webgl/Sparks.tsx
Shared runtime
- Motion signals
lib/signals.ts - Video seek helpers
lib/videos.ts
Site chrome
- Site header
components/ui/SiteHeader.tsx - Hero overlay
components/ui/HeroOverlay.tsx - Site footer
components/ui/SiteFooter.tsx
Other components
- Visitor
Connections 36
- Visitor → Experience page: opens
README.md - Experience page → Scroll director: renders
app/page.tsx - Scroll director → Smooth scrolling: starts
components/Experience.tsx - Smooth scrolling → Scroll director: updates scroll
lib/useLenis.ts - Scroll director → Motion signals: tweens
README.md - Scroll director → Video seek helpers: seeks videos
components/Experience.tsx - Scrubbed trailers → Video seek helpers: uses
components/overlays/VideoLayer.tsx - Scroll director → Scrubbed trailers: renders
components/Experience.tsx - Scroll director → Cinematic text: renders
components/Experience.tsx - Scroll director → Flash overlay: renders
components/Experience.tsx - Scroll director → Doom showcase: stages
README.md - Doom showcase → Doom model: renders
components/webgl/showcase/Showcase.tsx - Scroll director → Character orbit: renders
components/Experience.tsx - Scroll director → Story panels: renders
components/Experience.tsx - Scroll director → Horizontal reel: renders
components/Experience.tsx - Scroll director → Battle finale: scrubs
components/Experience.tsx - Scroll director → MCU timeline: renders
components/Experience.tsx - Scroll director → Title reveal: renders
components/Experience.tsx - Scroll director → Atmosphere canvas: mounts
components/Experience.tsx - Atmosphere canvas → Camera rig: renders
components/webgl/CinematicCanvas.tsx - Atmosphere canvas → Particle field: renders
components/webgl/CinematicCanvas.tsx - Atmosphere canvas → Lightning: renders
components/webgl/CinematicCanvas.tsx - Atmosphere canvas → Volumetric fog: renders
components/webgl/CinematicCanvas.tsx - Atmosphere canvas → Portal: renders
components/webgl/CinematicCanvas.tsx - Atmosphere canvas → Sparks: renders
components/webgl/CinematicCanvas.tsx - Scroll director → Site header: renders
components/Experience.tsx - Scroll director → Hero overlay: renders
components/Experience.tsx - Scroll director → Site footer: renders
components/Experience.tsx - Character orbit → Motion signals: reads
components/overlays/CharacterOrbit.tsx - Story panels → Motion signals: reads
components/overlays/StoryStack.tsx - Horizontal reel → Motion signals: reads
components/overlays/HorizontalReel.tsx - Cinematic text → Motion signals: reads
components/overlays/CinematicText.tsx - Atmosphere canvas → Motion signals: drives visuals
README.md - Site header → Motion signals: reads
components/ui/SiteHeader.tsx - Site footer → Motion signals: reads
components/ui/SiteFooter.tsx - Hero overlay → Motion signals: reads
components/ui/HeroOverlay.tsx