Academy · Lesson 3 of 6 · · 1 min read

Video heroes and seamless loops

A video hero plays a short clip behind the headline of a page. It works best when the clip shows something real about the business, like a room, a product or a place, and when it loops without a visible jump. Keep it short, silent, muted by default and light enough to start quickly.

By the AnimatedWebs team · Animated websites from zero

When a video hero is the right choice

Use video when movement tells the story better than a photo. Water, light, fabric, smoke and city streets all read well. A clip of people talking to camera does not, because the sound is off.

Skip video when the page must load on weak connections first, or when the visitor needs to read a lot right away.

What makes a loop seamless

A loop is seamless when the last frame flows into the first with no jump. There are two common ways to get there.

  • Film a cycle. Pick motion that repeats naturally, like waves or drifting clouds, and cut at matching points.
  • Crossfade the ends. Blend the last second of the clip into the first second, so the seam disappears.

The markup

A background video that behaves
<video autoplay muted loop playsinline preload="metadata" poster="/hero.jpg">
  <source src="/hero.webm" type="video/webm">
  <source src="/hero.mp4" type="video/mp4">
</video>

muted and playsinline are what let the clip start on its own on phones. The poster image shows straight away and stays in place if the video cannot play.

Keep the headline readable

  • Lay a dark or light gradient over the video, under the text.
  • Choose calm clips. Fast cuts behind text are hard to read.
  • Show the poster image instead of the video for visitors who prefer reduced motion.

Examples from the catalog

Stillwater Meditation App loops mist over a mountain lake. Aurum Air plays a sunset from a plane window behind large serif type. For ready-made loops, see the Cinematic Backgrounds library.

Questions people ask

How long should a background loop be?+

Short. A few seconds is enough if the loop is seamless. Shorter clips are smaller files and start faster.

Should a hero video have sound?+

No. Browsers block autoplay with sound, and visitors do not expect it. If sound matters, add a clear button to turn it on.

Which video format should I use?+

Offer WebM and MP4 sources. The browser picks the first one it can play.

Sources

Related templates

See the technique running

Play the live demos, open the one you like, and start with a free template or unlock the whole library.