Motion graphics by platform
Motion graphics for websites and landing pages
Updated 8 min readBy the Vizualy Studio teamView as Markdown
TL;DR
- web.dev says an autoplaying, looping website video needs the autoplay, muted, loop and playsinline attributes; muted is required on mobile and playsinline is required for autoplay on iOS.
- WCAG 2.2 criterion 2.2.2 (Level A) requires a way to pause, stop or hide motion that starts automatically, lasts more than five seconds and sits beside other content.
- Lighthouse flags pages over 5,000 KiB of total network requests and suggests aiming below 1,600 KiB, so a hero loop has to be small.
- Google's Core Web Vitals guidance sets a good Largest Contentful Paint at 2.5 seconds or less, and a video's poster image can be the LCP element.
On this page
Website motion graphics should be silent, small and stoppable. For the social cuts that sit beside the site, see our LinkedIn and Instagram guides. Use a muted autoplay loop with a poster frame for the hero, keep the file within a page-weight budget, give visitors a pause control for anything that moves for more than five seconds, and honor reduced-motion settings. The placement guide below turns that into a brief.
What kinds of motion work on a website?
Three kinds of motion earn a place on a website: a hero loop, an explainer embed and small product or interface loops. Each has a different job, a different size budget and a different accessibility duty, so brief them as separate files.
- Hero loop. A silent, looping background or feature animation above the fold. It sets mood and shows the product in action.
- Explainer embed. A video the visitor chooses to play, with sound and captions. It carries the argument. For length and scripting, see our explainer video length guide.
- Product or interface loop. A short animation of one feature, step or product detail, set inline in a section. Think of a GIF replacement.
A fourth kind, micro-motion such as button states and icon transitions, is usually built in code by the developer. It belongs to the same reduced-motion rules but not to a video brief. Our guide to motion design principles covers the timing behind it.
How do you make a video autoplay correctly?
Use a video element with autoplay, muted, loop and playsinline. web.dev's guide for replacing GIFs shows exactly that set of attributes: autoplay starts playback, loop repeats it, muted removes audio and playsinline keeps it inline instead of full screen.
The reasons are practical. MDN's autoplay guide says browsers generally allow autoplay only when the audio is muted, the visitor has interacted with the site or the site is allowlisted, and that playsinline is required for autoplay in Safari. It recommends muted autoplay for previews and background video, and showing a play button if the browser rejects playback.
A copyable starting point for your developer:
<video autoplay muted loop playsinline preload="metadata"
poster="hero-poster.jpg" aria-label="Product animation: dashboard filling with data">
<source src="hero.webm" type="video/webm">
<source src="hero.mp4" type="video/mp4">
</video>
web.dev recommends listing WebM first and MP4 second, because browsers use the first source they support. The same page recommends stripping the audio stream (-an in FFmpeg) when a video needs no sound, which cuts file size even when the track is silent.
Two cautions. Autoplaying videos begin downloading immediately, even when they sit below the fold, so web.dev suggests lazy-loading videos that start offscreen. And a hero video that is the Largest Contentful Paint element should have a poster and should not be lazy-loaded.
How big can a hero video be?
Keep a hero loop as small as the design allows, because it competes with everything else on the page. Lighthouse flags pages whose total network requests exceed 5,000 KiB and suggests aiming to keep the total below 1,600 KiB.
Google does not publish a per-video limit, so any number for the video alone is a working rule, not a standard. Ours is to treat the 1,600 KiB page target as the budget and spend no more than about a third to a half of it on the hero loop. That is roughly 500 to 800 KB for a mobile-first page. Where a design needs a richer loop on desktop only, serve a smaller file or a still to mobile visitors.
Core Web Vitals sets a second limit: web.dev says a good Largest Contentful Paint is 2.5 seconds or less at the 75th percentile. For video, the browser uses either the poster image's load time or the first frame's presentation time, whichever is earlier. A light poster protects the score.
What accessibility rules apply to website motion?
Four WCAG 2.2 success criteria shape website motion graphics. They are the checklist your client's accessibility reviewer will use, and they apply whether or not your client is legally bound by them.
| Criterion | Level | What it requires | Source |
|---|---|---|---|
| 2.2.2 Pause, Stop, Hide | A | Moving content that starts automatically, lasts more than five seconds and sits beside other content needs a way to pause, stop or hide it, unless the movement is essential | W3C |
| 1.4.2 Audio Control | A | Audio that plays automatically for more than 3 seconds needs a way to pause or stop it, or to control its volume separately | W3C |
| 2.3.1 Three Flashes | A | Nothing flashes more than three times in any one-second period, unless it falls below the flash thresholds | W3C |
| 1.2.2 Captions (Prerecorded) | A | Prerecorded video with audio needs captions, unless it is a clearly labeled alternative to text on the page | W3C |
The first is the one agencies miss. A hero loop that runs for more than five seconds beside a headline needs a pause control. A visible, keyboard-reachable pause button in the corner of the hero satisfies it. W3C also notes that one shared control for all moving elements is recommended.
Tell your client's developer about the criteria early. Whether the page is legally required to meet WCAG depends on the client and jurisdiction, so check with the client's counsel or compliance team rather than assuming.
How do you handle reduced motion?
Respect the visitor's device setting by swapping motion for a still or a gentler effect. MDN explains that prefers-reduced-motion detects a request to remove, reduce or replace motion-based animations, and that it helps people with vestibular disorders, for whom scaling or panning large objects can be triggers. It is widely available across browsers, since January 2020.
For a video, the developer pauses it or shows the poster when the media query matches. For CSS or code animation, replace large movement such as parallax or zoom with a fade. A reduced-motion version should still carry the message, so design the poster as a real frame, not a blank.
W3C's criterion 2.3.3, Animation from Interactions, is Level AAA, meaning it is above the usual AA target. It asks that motion triggered by an interaction can be turned off, and points to the reduced-motion preference as a technique. Many teams meet it anyway, because it costs little.
What is the website video placement guide?
The placement guide below is the asset to hand your developer and your motion team. Sizes marked "working rule" are our budgets, derived from the Lighthouse page-weight figures above; the rest are sourced.
| Placement | Autoplay and sound | Length and format | File-size target | Accessibility must-haves |
|---|---|---|---|---|
| Hero loop | Autoplay, muted, loop, playsinline; no audio track | 5 to 15 s; WebM then MP4 | Working rule: about 500 to 800 KB, within a 1,600 KiB page target | Pause control (2.2.2); still poster; reduced-motion fallback |
| Explainer embed | Click to play, sound on; no autoplay with sound | Set by the script; MP4 or hosted player | Streamed, not downloaded up front; use preload none or metadata | Captions (1.2.2); keyboard-operable player |
| Product or interface loop | Autoplay in view, muted, loop, playsinline | 3 to 8 s; WebM then MP4 | Working rule: under about 300 KB each | Pause control if over 5 s (2.2.2); text alternative nearby |
| Micro-motion (icons, buttons) | Triggered by interaction | CSS or Lottie-style code | Counts against page weight | Reduced-motion variant; no flashing (2.3.1) |
For length and scripting of the explainer, see our explainer video script guide. For SaaS landing pages specifically, our SaaS explainer video guide shows where the embed sits.
What should the brief to your motion team say?
Ask for the website set as a package, not a single file. A short brief that works:
- Hero loop: 16:9 and a 1:1 crop for mobile, 8 to 12 seconds, loop that does not jump, no audio, with a matching poster still.
- Loop design: Text stays in the center column, so it survives a mobile crop. Avoid flashing or rapid strobing.
- Explainer: 16:9, captions file delivered separately, with a transcript.
- Product loops: one per feature, 3 to 8 seconds, on a transparent or brand-color ground.
- Delivery: MP4 master plus the developer compresses to WebM and MP4. Say who owns compression.
Vizualy's paid files come as 1080p in 9:16, 1:1 and 16:9, white-label with no Vizualy logo, which covers the hero and mobile crops. Compression into web-weight WebM remains a developer step, so budget for it. Our guide to brand motion guidelines helps keep site motion consistent with the rest of the brand.
The short version
- Hero loops are silent: autoplay, muted, loop and playsinline, with a poster frame and no audio track.
- Budget file size against Lighthouse's 1,600 KiB target; a hero loop should take a fraction of it.
- Add a pause control for any automatic motion that lasts over five seconds (WCAG 2.2.2).
- Honor prefers-reduced-motion by showing a still or a gentle fade.
- Caption anything with speech, and check with the client's counsel on legal accessibility duties. See the platform pillar for how the website cut fits the full set.
AI-powered super editors
Branded motion videos
$149per video
or $599 a month for 10
AI builds it fast; human editors own the brand and finish. White-label, full rights, every format.
Browse the AI video libraryFrequently asked questions
Should a website hero video have sound?
No. Browsers generally block autoplay with sound, and WCAG 1.4.2 requires a way to pause or stop audio that plays automatically for more than 3 seconds. A hero loop should be silent. Remove the audio track from the file entirely, which also saves bytes, and let any sound-on video start only when a visitor presses play.
How long should a website background video loop be?
Keep it short enough to stay small; we suggest 5 to 15 seconds, and make the last frame match the first so the loop does not jump. There is no official length rule; the real limits are file size and the five-second WCAG threshold, after which visitors need a way to pause. A short loop also holds up better on mobile data.
Do I need a pause button on a hero animation?
Yes, if it starts automatically, lasts more than five seconds and appears next to other content. WCAG 2.2 success criterion 2.2.2 requires a mechanism to pause, stop or hide it, unless the movement is essential. A small, labelled pause control in the corner of the hero is the usual solution.
What is prefers-reduced-motion?
It is a CSS media feature that detects whether a visitor has asked their device to reduce motion. MDN says it helps people with vestibular disorders, for whom large scaling or panning can be a trigger. When it matches, show a still poster image instead of the loop, or replace large movement with a gentle fade.
Is video better than an animated GIF on a website?
For anything beyond a tiny icon, yes. web.dev recommends replacing animated GIFs with muted, looping MP4 or WebM video for faster page loads, and shows one example where a 3.7 MB GIF became a 551 KB MP4. That is one example, not a guarantee, but video is almost always smaller at similar quality.
Sources
- Replace animated GIFs with video for faster page loads · web.dev
- Lazy loading video · web.dev
- Video performance · web.dev
- Autoplay guide for media and Web Audio APIs · MDN Web Docs
- Understanding Success Criterion 2.2.2: Pause, Stop, Hide · W3C
- Understanding Success Criterion 1.4.2: Audio Control · W3C
- Understanding Success Criterion 2.3.1: Three Flashes or Below Threshold · W3C
- Understanding Success Criterion 1.2.2: Captions (Prerecorded) · W3C
- prefers-reduced-motion · MDN Web Docs
- Understanding Success Criterion 2.3.3: Animation from Interactions · W3C
- Avoid enormous network payloads · Chrome for Developers
- Largest Contentful Paint (LCP) · web.dev
Keep reading




