Load GSAP and three.js first
The script reads window.gsap and window.THREE. Load both before code.js. Without them, the hero shows its settled slot and heading with no cards.
Use square pictures
Cards are square and show the whole picture, so crop to 1:1 first. Around 640px is plenty. List them as <li data-ctn-image data-src="…">; with fewer than there are cards they repeat, card n showing picture n mod the count. Same-origin paths always work; other hosts need CORS.
Keep the copy short
The heading sits above the slot, with the cards flying through below it. Two lines is the most it should take; longer copy runs into the tunnel.
A sentence and button are optional
It ships with the heading alone. To add them, put <p class="ctn_text"> and <a class="ctn_button"> inside .ctn_copy, or pass text and buttonLabel in React. They sit below the slot and fade in after the heading. Leave .ctn_copy in place when it's empty: it holds the heading above the slot.
Pace the flight
data-au-interval sets how often a pair launches and data-au-travel how long a card takes to reach the edge. Their ratio sets how many cards are in flight: faster launches with a long flight fill the tunnel, slow launches thin it out. The card count grows to match, so a launch is never skipped.
Retheme with variables
--ctn-slot and --ctn-dot colour the slot and dot grid. --ctn-card-1 to --ctn-card-6 are the colours cards show while loading; add --ctn-card-7 and on to extend the list. --ctn-fg, --ctn-muted and --ctn-bg set the text, any button and the page.