Video loop vs WebGL vs Lottie vs Spline for hero backgrounds
Updated
Use a video loop when you want photoreal, cinematic quality at a predictable cost on every device. Use WebGL (Three.js) or Spline when the hero has to react to the cursor or scroll, and Lottie for flat, vector-style motion. You're trading look against interactivity, and both against the work and device power each one needs.
Side by side
| Video loop | WebGL / Three.js | Spline | Lottie | |
|---|---|---|---|---|
| Look | Anything a 3D renderer can do: path-traced glass, soft light, depth of field | Real-time 3D; lighting and glass are approximations | Real-time 3D with a friendly editor; stylised more than photoreal | Flat vector shapes and paths |
| Interactivity | None; it plays | Full: cursor, scroll, physics | Hover, scroll and click events | Playback control and simple interactions |
| Who builds it | A 3D artist renders it once; anyone embeds it | A developer with 3D skills | A designer in Spline's editor | A motion designer (After Effects export) |
| Cost on the visitor's device | Video decoding, usually in hardware | GPU rendering every frame | Runtime library plus GPU rendering | JavaScript rendering vectors; light for simple files |
| Works without JavaScript | Yes (a plain video tag) | No | No | No |
When each one wins
- Video loop: premium, product-ad look; landing pages where the hero should load fast and look the same on a budget phone; teams without a 3D developer.
- WebGL / Three.js: the hero is the product (configurators, interactive demos), or motion must follow the cursor or scroll exactly.
- Spline: you want interactive 3D without writing shader code, and the scene is simple enough for mid-range phones.
- Lottie: icons, illustrations and UI-style motion in a flat brand style, where tiny file size matters more than realism.
The hidden costs
- Real-time scenes render on the visitor's GPU every frame, so test them on a mid-range phone and watch battery and heat, not just a fast laptop.
- Interactive scenes need fallbacks for reduced motion, low-power mode and failed loads, which is extra work for every page.
- A video can't react to the user, but it can sit under interactive HTML (buttons, hover states, text effects), which covers most hero sections.
Edgeloop sells pre-rendered loops, so we're on the video side of this table. The comparison is meant to be fair: when you truly need interactivity, use a real-time option.
Skip the setup
Every Edgeloop loop ships pre-encoded (AV1, H.264 and both transparent formats) with a player that picks the right file, shows a poster, pauses off-screen and respects reduced motion.
<script src="https://edgeloop.studio/hero-loop.js" defer></script>
<hero-loop src="/loops/your-loop/" focus="right center"></hero-loop>Collection 01 opens soon. Join the waitlist for 3 free loops.
Questions
Is a video background better than WebGL for performance?
For a non-interactive hero, usually yes: the browser decodes video in hardware, while WebGL renders every frame on the device's GPU. WebGL wins only when the motion must react to the user.
Is Spline heavy on mobile?
It renders in real time, so complex scenes can be demanding on phones. Keep scenes simple and test on a mid-range device.
Can Lottie do 3D?
Not real 3D lighting or glass. Lottie animates vector shapes, so it suits flat, illustrated styles.