Keep the three scenes in order
"before", "after", then "night". The script puts its canvas just before the night scene, so the shader paints over the day scenes and the dark copy sits on top.
Keep the dark copy short
It sits inside the Moon. The script sets --ecl-moon-size to the Moon's radius and the copy is capped at 1.7× that. A heading and a line is about the limit on a phone.
Mark what should animate
A line with data-ecl-line inside an .ecl_mask rises in. Anything else with data-ecl-fade fades up 16px after the lines. Unmarked content just sits in its scene.
Leave room to scroll
The track is 560vh. Change --ecl-length for a slower or faster pass; the legs keep their shares.