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 boots as a plain headline and grid.
Give it room to scroll
The section is --dbn-length tall (400vh by default) with a sticky stage inside, and its full length drives the drift. Don't put it inside a parent with overflow: hidden, or the stage stops sticking.
Use twelve pictures, in order
There are twelve fixed slots: seven portrait (4:5), three landscape (4:3) and two square. Each picture is cover-fitted to its slot, so pre-cropping to the slot's shape keeps the subject where you want it. With fewer pictures they repeat in order.
Tune the bend and the travel
data-au-strength scales the bend (0 keeps the pictures flat), data-au-travel sets how far the field moves across the scroll, and data-au-scrub how far it lags behind it. A longer scrub lag smooths the speed, so the bend gets softer too.
Retheme with variables
--dbn-bg is the stage and --dbn-fg the headline. --dbn-muted and --dbn-accent colour the optional sentence and eyebrow.
Eyebrow and sentence are optional
It ships with a headline only. To add more, put <p class="dbn_eyebrow"> before it or <p class="dbn_text"> after it in .dbn_copy (eyebrow and text in React).