Load GSAP, Draggable and three.js first
The script reads window.gsap, window.Draggable and window.THREE. Load them before code.js. Without them the row of pictures stays and the console says why after 10 seconds.
Use 4:3 pictures
Each card is 4:3 and the shader crops pictures to fit from the centre. Pre-crop anything with an off-centre subject. Around 560 × 420 is plenty: even the front cards are small on screen.
Give it six or more pictures
The pictures repeat to fill every card (36 by default). With twelve, each picture shows three times; with only a few, neighbours start to repeat.
Shape the stair
data-au-turns sets how many times it winds round from bottom to top, data-au-radius how wide it is (the camera backs off for big radii), and data-au-cards how many cards share the climb. More turns or fewer cards spread the cards out.
Retheme with variables
--hlx-bg is the page and the colour each card fades in from (read once at init). --hlx-fg, --hlx-muted and --hlx-accent colour the optional heading, sentence, hint and hint dot.
Adding a heading or hint
It ships as pictures only. To add copy, put .hlx_head (.hlx_title, .hlx_text) and .hlx_hint after .hlx_scene, or pass title, text and hint in React.