One word per line
Each word sits on one line and never wraps. The block is as wide as its longest line, so keep words to about 12 letters; longer ones push the block wider than a phone screen.
Mix the hinges
The effect is most readable when neighbouring words fold differently. The demo opens right, then left, then up, so each line reads as a new move.
Give the photos a subject in the middle
Wide pictures are cropped to a short strip (0.85em tall) with object-fit: cover, centred. Keep the subject near the vertical centre of the frame. The square variant crops to 0.85em × 0.85em.
Set the scroll window
The fold plays while the word's top travels from 80% to 50% of the viewport (data-au-start, data-au-end). Widen the gap for a slower unfold, narrow it for a snappier one.