Skip to content
arrie.dev Templates

Hero sections

Quiet Loop

Muted video behind the headline, with a poster frame that holds if the video never loads.

R880

Once. Yours to keep

Get this template

The shape of it, not a screenshot

What it is

A first-screen block with a muted, looping video behind the text. The poster frame paints first and the video is fetched after it, so the first thing on screen is a still image and a readable headline rather than a spinner. If the connection is slow, if the file fails, or if the visitor has reduced motion turned on, the poster stays and nothing else happens.

It comes as an Astro component with the headline, sub-line and two buttons as props. Between the video and the text there is a scrim layer with its opacity and gradient direction exposed as variables, because every clip needs a different amount of it. There are ffmpeg commands in the readme for getting an MP4 and WebM pair down to a sensible size, and a twelve-second test loop so you can see it working before you have your own footage.

You need a video: ten to fifteen seconds, no cuts, nothing that reads as stock footage. Without one this is the wrong thing to buy — Cover Plate or Set in Lead will serve you better. It is also wrong if most of your traffic is on metered mobile data. Even a well-encoded loop is a megabyte or two, and no amount of care changes that.

Included

What you get

  • Hero.astro with headline, sub-line and two button slots
  • Poster-first loader, about 30 lines of plain JavaScript
  • prefers-reduced-motion path that holds the poster and stops there
  • Scrim layer with opacity and gradient direction as CSS variables
  • ffmpeg commands for the MP4 and WebM encode
  • Twelve-second test loop for development, not for production
How it works

After you buy

  1. 01 You message me On WhatsApp. Tell me which one and where it is going.
  2. 02 I set it up for you Your words, your colours, your logo dropped in — or the raw files if you would rather do it yourself.
  3. 03 It goes live On your hosting or on mine. Either way it ends up in your own account.
  4. 04 It is yours The whole thing, with nothing to renew and nothing tied back to me.