To replace an animated GIF with a lightweight .webm video and enable autoplay in Webflow, follow these steps:
Note: Webflow’s native Video element only accepts YouTube/Vimeo links, not custom video formats like .webm via drag-and-drop.
Drag an Embed component (from the Add panel) into your layout where you want the video to appear.
Paste this inline embed code inside the Embed field:
``
Replace YOUR_VIDEO_URL.webm
with the actual URL of your uploaded video. To get this:
Click the uploaded .webm file in the Assets panel.
Click the gear icon to open asset settings.
Copy the asset URL and paste it in the src
attribute.
Use a video embed with autoplay, muted, and loop attributes to replace a GIF in Webflow. Upload the .webm file to the Assets panel, get the direct URL, and insert it using a custom Embed element, since Webflow doesn’t support .webm directly via native video blocks.