vaweGitHub

Video componentsGrounds

Simple marquee

three rows of tiles slide for a whole beat, left, right, left, each row four copies that wrap by one set width at 8 percent per second.

Groundsproduct4.4 s

simple-marquee.md

Simple marquee: final frame of the background animation
00:00.0000:04.40
Tap the clip to play it.

When to use

Use when a film shows a crowd, a team or a list of names that is longer than the frame: contributors, customers, guests. Rows of name tags drift past in opposite directions.

Look: the flat neutral ground and a centred heading. Three lanes of white name tags with a hairline ring and a faint shadow. Each tag has a round initial in a pale tint, a name in semibold and a role in muted grey, all at 3.4 u or more. The lanes fade at the left and right edges. The names are invented people.

How it moves: the heading and the lanes fade in with a 1.2 vh rise (110 ms between lanes). Then each lane drifts at 9 u a second, the lanes in alternating directions. A marquee runs at one speed, so the drift has no ease and is a function of the seek time. The whole stage leaves on leave.

The code

js
const SPEED = 9;                                          // u a second; the rows run at one speed, so no ease
window.seek = (t) => rows.forEach((row, i) => { row.style.translate = `${ROWS[i].dir * SPEED * u * t}px 0`; });
arrive(lane, 150 + r * 110, { ms: 300, from: '1.2vh' });   // the lane, not the row, so the drift keeps the row's translate

Notes

Common mistake: tiles that are only gradients. They read as colour blobs and say nothing. Give each tag real content (an initial, a name, a role) at a readable size, and keep every row the same height and gap so the loop is clean.

Looks (ground, type, radius, accent) live in demo/demo.css; this snippet keeps neutral tokens.

Sound

Sound: none.

Chain it into a film.

Copy chains of video components from the recipes.