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?