Make a website hero background video by choosing one visual idea that supports the page's headline, then building a short loop with room for text. Treat the still poster as the primary fallback, compress the delivery file, and test the hero on small and large screens. The video should help a visitor understand the offer without making the page harder to read or slower to use.
A hero background is not a miniature commercial. It sits behind navigation, a headline, supporting copy, and a call to action. It often plays without sound and may be cropped differently on each device. A scene that works as a full-screen film can fail as a background because the subject disappears on a narrow phone or the motion makes text difficult to read. Design the page and video together.
What should the hero communicate?
Write the page's main message first. If the page sells a physical product, the background might show that product in real use. If it introduces a creative tool, an illustrative sequence might signal the kind of output the tool helps make. If the page is for a service, a real process moment may build trust. Choose a visual that answers the first visitor question rather than merely filling the space behind text.
Set a one-sentence visual brief. "Show a craftsperson tightening the final screw on the actual chair, with open space on the left for the headline" is actionable. "Make an inspiring cinematic hero" is not. The brief should specify the subject, action, crop, text area, and whether the footage is real or illustrative. That last distinction matters if the scene could be mistaken for a real product, facility, or customer outcome.
Keep the page useful when the motion is absent. A person with reduced-motion settings, a slow connection, or a browser that delays video should still get the offer from the headline and poster. The video is supporting context. The call to action should be a normal page control, not an element baked into the moving image.
What belongs in the shot plan?
Plan around the text block. Sketch desktop and mobile layouts first, then mark the areas where the headline, CTA, and navigation will sit. Place the subject in a region that survives both crops. If the subject must move, constrain its path so it does not pass behind the most important words. Shoot wider than the final crop to give the developer room to reposition the video with CSS.
Choose actions with a natural loop or a gentle reset. A repeated camera drift, rotating object, or continuous process detail can loop quietly. A person entering the room and snapping back to the entrance will call attention to the seam. A longer clip is not always needed. A well-chosen motion can play for several seconds without demanding a narrative ending.
Avoid rapid cuts and flashing brightness behind text. Even with a dark overlay, a bright subject passing under white letters can lower readability. Check every frame of the loop against the final typography. The solution may be to adjust the crop, choose a calmer source, or move the text. Heavy blur and dark overlays can make an unsuitable shot tolerable, but they may also erase the reason for using video.
What does a worked hero plan look like?
Consider an invented example for a small furniture brand whose page headline is "Built for rooms that change." The brand has real footage of a modular shelf being rearranged. The hero is wide on desktop and narrow on mobile. This is a layout exercise, not a site Oakgen built or measured.
The shot begins with the actual shelf at rest, then a hand moves one module into place, and the camera holds on the changed arrangement. The headline sits on the left of the desktop frame. For mobile, the editor selects a separate crop centered on the shelf and moves the text above the video rather than covering the action. If the same file is used on both screens, the capture must include enough negative space and height to keep the shelf visible. Testing will decide whether one source can serve both.
Choose a poster from the first stable frame with the shelf visible and no hand obscuring it. The poster should work as a complete background while the video loads. If the brand's main claim is modularity, a still may not prove it, but the page copy and product images can. The video adds a quick demonstration when it plays. The final CTA remains a real button linked to the product collection.
For an illustrative budget, suppose the edit uses a six-second loop and a separate poster. The production team makes one desktop crop and one mobile crop, then tests both in the real page. Six seconds is a starting hypothesis, not a web standard. If the loop seam is obvious or the file is too heavy, trim, change the action, or use a still on mobile. Do not increase duration simply to hide a bad seam.
How do you make the loop feel continuous?
Identify the action's start and end states. A continuous turntable or slow camera motion can be looped if the end position matches the start closely. A human action may need a crossfade or a cut at a quiet frame. Check for jumps in object position, shadows, and exposure. A dissolve can conceal a small seam but may create a ghost image around a moving person. Sometimes a clean cut to a static poster is better than forcing a perfect loop.
Watch the loop for several repeats at normal speed. Editors tend to inspect only the first pass and miss a reset that becomes irritating after ten seconds. Ask someone unfamiliar with the footage whether they notice the repetition while reading the headline. If they do, reduce the movement or make the loop longer only if the file budget allows it.
Keep the source motion deliberate. A tiny camera drift may be enough to make the page feel alive. A complex sequence with several actions can become distracting behind copy. The hero should leave attention for the page's main decision: read, scroll, or click.
How do you prepare the file for the web?
Keep a high-quality master and produce a compressed delivery file. web.dev's video performance guide, read on 2026-12-02, explains the difference between container and codec and why video compression affects bandwidth and page loading. It discusses using more than one source format where appropriate and removing audio when a background clip does not need it. Choose formats based on browser support and test the actual implementation.
A silent background does not need an audio track. Removing it can reduce file weight and avoid unexpected playback behavior. Check the encode for visible banding, blockiness, and lost texture at the size the user will see. The right target is acceptable visual quality in the real layout, not the largest file the hosting service accepts. A subtle background can often tolerate more compression than a product-detail video where tiny labels matter.
Set a poster image and preserve the same focal point. If the poster shows a different crop or a brighter moment, the page can flash as video loads. Test the first paint and transition on a throttled mobile connection, not only a fast local machine. Measure the page with the video present and compare it to the still-only version. If the video meaningfully delays the headline or interaction, rethink loading behavior or remove it.
How should the page implement playback?
The developer should make the video decorative only when its information is genuinely redundant with text and still media. A decorative loop can play muted, with controls handled according to the design and accessibility needs. If the video contains essential instructions or speech, present it as actual content with accessible controls and captions. The W3C media guidance explains the needs around audio, video, captions, and players.
Respect a visitor's reduced-motion preference. Provide a still state that looks intentional rather than an empty box. Consider whether autoplay is appropriate for the page and browser behavior. Check that the video does not steal focus, cover buttons, or block scrolling. The user should be able to understand and use the hero even if playback fails.
The text overlay must be tested at responsive breakpoints. Desktop and phone may need different text positions or video crops. Avoid putting important words into the video itself. HTML text remains selectable, accessible, and easier to update. If the offer changes, the page copy can be corrected without re-encoding footage.
Can AI-generated footage work in the hero?
Yes when the scene is clearly illustrative and supports the message. AI can help explore an abstract process, a stylized environment, or a mood sequence. It can also introduce unstable geometry, impossible movement, or product details that change across frames. Review the output in the actual crop and at full size. A flaw hidden by a dark overlay may still be visible on a large monitor.
Oakgen is our product. Oakgen's video generator can be used to explore an illustrative hero concept. If the hero claims to show a real product, team, place, or process, record the actual subject. A standard editor is often the better tool for trimming, looping, color, and web export of real footage.
Keep provenance in the project record. Mark whether each clip is filmed, licensed, or generated. If a generated workshop appears behind a page about a real factory, a visitor could reasonably mistake it for documentary footage. Choose a less literal visual or make the illustration clear in context. The page's trust is more valuable than a perfectly smooth animation.
How do you test the finished hero?
Use a checklist in the actual page: the headline is readable throughout the loop, the CTA is usable, the subject survives mobile and desktop crops, the poster is coherent, reduced-motion behavior works, and the file loads acceptably on a slower connection. Watch at least three loops to judge the seam. Test with keyboard and touch. Check that no control overlay or browser behavior changes the intended composition.
Ask a new viewer to describe the offer after five seconds. If they remember only the motion, the background is competing with the message. If they understand the offer from the still version but not the moving version, the video has made the page worse. This is a proposed comprehension check, not a result we measured.
When is a still image the better choice?
Use a still when the scene has no meaningful motion, when the mobile crop cannot preserve the subject, or when the video cost in page performance is not justified. A strong product photograph can make a clearer first impression. Use a click-to-play product demonstration lower on the page when the motion is valuable but too detailed for a background. The hero does not need to carry every piece of evidence.
What is the final handoff?
Deliver the master, compressed exports, poster, focal-point notes, source rights, and responsive preview screenshots. Give the developer the intended crop and reduced-motion state. Assign an owner to check the hero after layout or copy changes. A new headline line break can move text over the subject even if the video file stays the same.
How do you hand the motion and fallback to a developer?
Deliver the motion file and the poster as separate assets. Choose the poster from a frame with legible contrast around the same part of the picture as the final hero copy. In the narrow layout, compare the area between the headline and the button with the full-width frame. If the video hides the proof or drops a clear path to the button, ship a cropped or separately framed poster for that size. Mark which asset should appear for people who request reduced motion and for the situation where the video fails to load.
Keep a small playback matrix in the handoff. Include a normal desktop visit, a phone on a slow connection, a reduced-motion visit, and a visit with video playback unavailable. Assign one person to confirm that the same headline and action survive all four states. Measure the poster and the video separately in the Network panel so you can see which asset increases page weight. Recheck after deploying to the actual preview host because cache settings and request order can differ from the editor.
The handoff should also describe where the focal point may move when copy changes. A long translated headline can occupy twice the height of the original English line. Test the most demanding language and the smallest supported screen before locking the video crop. If a local page has a longer call to action, keep it in HTML and let the layout adapt. Do not bake it into the footage. A background that supports one sentence but hides another is not a reusable global asset. Keep the poster and mobile crop in the same review cycle as translated copy.
How we checked this
We read web.dev's video performance guide and W3C's media accessibility guidance on 2026-12-02. We did not build or benchmark a website hero for this article. The furniture brand, loop duration, and layout are illustrative. Test loading and playback on the actual site before publication.
Frequently asked questions
Should a hero background video have audio?
Usually the hero message should work without audio. If sound carries essential information, provide an accessible player and captions instead of relying on silent background playback.
How long should a hero loop be?
Use the shortest loop that communicates the intended visual idea without an obvious reset. Test actual playback and file weight rather than following a fixed duration.
Do I need a poster image?
Yes for a reliable first view and fallback. Choose a still that supports the headline even if the video never plays.
Can I use AI video in a website hero?
Yes for an illustrative mood scene, subject to review of rights and accuracy. Do not present generated footage as a documentary view of a real product or place.





