Load GSAP, Draggable, InertiaPlugin and three.js first
The script reads window.gsap, window.Draggable, window.InertiaPlugin and window.THREE. Load all four before code.js; until they arrive the plain strip shows.
Use 3:4 pictures
Cards are 3:4 and cover-fit the centre of each picture. Pre-crop tall or wide pictures so the subject sits in the middle. Around 600 × 800px is plenty. Same-origin paths always work; other hosts need CORS.
Six to thirteen cards
The row has 26 slots and repeats your cards to fill them, so 13 cards appear twice. Fewer cards repeat more often; keep at least six so repeats aren't side by side.
Write a title for every card
Each [data-dgl-card] carries data-title; the panel shows it. Without it the picture's alt text is used.
Adding the extras
It ships with pictures and titles only. For a meta line and the card's number, put data-meta on each card and [data-dgl-panel-meta] and [data-dgl-panel-idx] spans in the panel text. For a heading, sentence and button, add a .dgl_head holding .dgl_title, .dgl_text and .dgl_button; for the faint word, a .dgl_ghost (React: meta on the cards, title, text, buttonLabel, ghost).
Retheme with variables
--dgl-accent and --dgl-on-accent colour the optional button, --dgl-fg, --dgl-muted and --dgl-faint the text, --dgl-bg the page. The optional faint word is --dgl-fg at 4%.