also called ticker · infinite scroller · running band
The one effect here that ignores scroll entirely — it gives a page a pulse when nothing else moves. Duplicate the content exactly once and travel -50%; that is what makes the loop seamless. The copy is aria-hidden and inert, so a screen reader reads each greeting once and the keyboard never tabs into the ghost. Speed is set in pixels a second, not seconds a loop: the duration is one set’s measured width over the band’s speed, measured again when the fonts arrive, so five bands of different lengths keep their own paces. Anything that moves for more than five seconds must be stoppable: hover stops a band, Hold stops them all, and with reduced motion they stand still and scroll by hand. Each greeting is set in its own script’s face, and all twenty-one faces come in one request cut down to the characters the greetings use. Only the label turns, at the 16⅔ rpm the record was cut for: the grooves look the same at every angle, and the photograph’s glints stay where the light was.
How it is built
<div class="run"> <!-- moves; holds the greetings twice -->
<ul class="set">…eleven greetings…</ul>
<ul class="set" aria-hidden="true" inert>…the same eleven…</ul>
</div>
.run { width: max-content; animation: run var(--dur) linear infinite }
@keyframes run { to { translate: -50% 0 } } /* one set's width: it lands on the seam */
.band:hover .run, .voyager:has(#hold:checked) .run { animation-play-state: paused }In full, on GitHub index.html showcase.css showcase.js
Photograph — The Sounds of Earth, NASA, public domain, via Wikimedia Commons. Greetings — recorded for the Voyager record in 1977; written forms and translations as listed in Wikipedia’s contents of the record. Facts — Voyager Golden Record; Contents of the Voyager Golden Record; WCAG 2.2, Pause, Stop, Hide.
