Load GSAP, ScrollTrigger and three.js first
The script reads window.gsap, window.ScrollTrigger and window.THREE. Load all three before code.js. If three never arrives, the section still swaps the photos at halfway.
Give it room to scroll
The section is --fgs-length tall (300vh by default) with a sticky stage inside, and its full length drives the fog. Don't put it inside a parent with overflow: hidden, or the stage stops sticking.
Keep plate B first in the markup
Photo B sits under photo A as a plain <img>; both show until the shader has them. Keep the order from code.html.
Pick the fog colour for the photos
--fgs-fog sets the fog (read once at init). A warm off-white suits sunlit stone and sand; a cool grey suits snow and sea; a colour makes it read as smoke or dust. Titles sit on the photos, so keep --fgs-fg readable on both.
Shape the fog
data-au-warp sets how much the body billows, data-au-softness how soft the band's edges are, and data-au-mist how strong the thin veil around it is. data-au-drift sets the idle churn; 0 moves the fog only on scroll.
Labels are optional
Each photo ships with a title only. For a short line under it, add <p class="fgs_label"> after .fgs_title (label in React).