I’m using a WebM animation file as a background on my Webflow site, and it works perfectly in Chrome and other browsers. However, in Safari, the animation background doesn’t play — it just shows a blank or fallback background.
Is there a recommended workaround for this?
Should I include a fallback animation format like MP4? If so, how can I set it up correctly in Webflow?
Any guidance or best practices for cross-browser animation compatibility would be really helpful.
Really dig your Webflow site
Regarding the WebM and Safari, Safari does support the WebM format, but with some caveats. Modern versions of Safari on macOS and iOS (specifically, versions 14.1 and later) have native WebM support. However, older versions of Safari may require manual installation of codecs or rely on plugins to play WebM files.
I would use the Vdeo Background element instead of Code Embed.
I usually add mp4, and Webflow does the rest, converts / encode it to the right formats.