Hero in Motion

Video fetched so far: 0 B

Fictional example

Still up? So are we.

Late Window Radio: slow records and quiet talk from a one-room studio, every night from eleven until the first trains.

Hear last night
A city at night. In one lit window a radio host in headphones sits at a microphone under a red on-air lamp, and a rooftop mast sends out rings of signal. A still illustration.

The video is not loaded yet.

Playback begins only when requested and pauses when hidden or offscreen. It never resumes automatically.

Details

Late Window Radio is a made-up brand for this example. It shows the cover layout: the picture fills the hero, the words sit on top of it, and focus keeps the lit window in view on a narrow screen.

What this page has fetched

  • 0 B

    of video so far. The page has not asked for it. Press Play on the picture and watch this number.

  • 39 kB

    is everything this hero needs before Play: its words, styles and script (13 kB) and the poster (26 kB).

  • 581 kB

    is the whole 10-second clip as WebM (1.41 MB as MP4, for browsers that need it). It is drawn with code, starts on the poster and ends on it.

The same hero built the usual way starts by itself and fetches the video whether you wanted it or not. See the autoplay version and its meter.

What the hero does without being asked

Three looks from three small files

Each of these pages is one JSON file with words, a poster and a video. The layout, the colours and the part of the picture to keep in view are fields in that file.

Make yours

git clone https://github.com/augustobuilds/hero-in-motion.git
cd hero-in-motion
python3 scripts/build_hero.py examples/radio.json --output output/hero.html

It needs Python 3.9 or newer and nothing else. Change the words, the poster and the video in the JSON file, or add --fragment to get just the hero block for a page you already have. No video yet? The kit can turn an SVG poster into a 10-second clip. Read the guide on GitHub.