Choosing Web Video Formats for Different Animation Use CasesChoosing Web Video Formats for Different Animation Use Cases
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Hey Web Devs! What do you use for video animations on the web? I know, there is no single right answer to it. It depends on what's the animation and use case. - Hero section background video? - A sub element that plays a tiny role? - Looping tiny element? Apple, for example, uses image sequences. The frames play as you scroll and they control every frame like that. Most of my work is longer animations that are playing in the hero section. For those, a WEBM with MP4 backup works well. WEBM keeps file light, MP4 covers the browsers that can't play WEBM. But if you ask me what's best for the long full-screen background animations, it's the Vimeo Embed. I've tried YouTube as well but Vimeo gave the best performance and the best quality at the same time. What you guys use for animations on the web?
Post image
Stephen's avatar
I normally use video for the background or like a GSAP or three.js element
Maniruzzaman's avatar
Background video is best!!
Onalapo 's avatar
Same approach as you for hero backgrounds — short, muted, looping WEBM with an MP4 fallback, lazy-loaded with a poster so the first paint isn't blocked. For scroll-driven motion I reach for GSAP ScrollTrigger or an image sequence like Apple's approach you mentioned, and for...
Fugen's avatar
Fugen Services logo
Same for hero loops here: WebM with an MP4 fallback, muted and playsinline, plus a poster image so something shows before the video loads. For tiny looping UI bits Lottie works better, it stays sharp and weighs almost nothing.
Alex's avatar
The Vimeo iframe can drag LCP down on a hero. For long loops I've had better results serving HLS from Mux or Cloudflare Stream, same adaptive quality without the embed.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started