How can I fix the issue of GIFs not animating when imported as images in Webflow?

TL;DR
  • Use actual animated GIF files placed within Image elements rather than as background images.  
  • Disable lazy loading for GIFs above the fold, ensure the image is visible, and publish the site to see animations work properly.

GIFs not animating in Webflow is typically caused by incorrect file setup or usage in a static image element. Here's how to ensure your animated GIFs display and function correctly in Webflow.

1. Use the Correct File Format

  • Ensure your file is actually a GIF and not converted to a static format (like JPG or PNG).
  • Test the GIF outside of Webflow (e.g., open in your browser) to confirm it animates.

2. Embed GIFs as Images, Not Backgrounds

  • Do not use GIFs as background images. Webflow converts background images for performance, often turning GIFs into static images.
  • Instead, use the Image element:
  • Drag an Image component into your layout.
  • Upload or select the animated GIF.
  • It will animate properly when rendered on the live site.

3. Check Image Settings and Position

  • Make sure the image is visible on the page (not set to display: none or hidden by interactions).
  • Check that the parent containers do not clip or overlay the image by accident.

4. Avoid Lazy Loading for GIFs Above the Fold

  • Webflow automatically adds loading="lazy" to images. This can delay the start of the animation.
  • For critical GIFs above the fold:
  • Select the image, go to the Element Settings panel, and uncheck “Lazy Load”.

5. Confirm Deployment & Cache

  • After publishing your site, clear browser cache or open the live site in incognito mode to test the animation.
  • Sometimes the Webflow designer preview does not reflect full behavior. The image should animate correctly once published.

Summary

Animated GIFs in Webflow must be used as Image elements, not background images. Disable lazy loading if needed and confirm your file is truly animated. Once set up correctly and published, the GIF should animate as expected.

Rate this answer

Other Webflow Questions