How can I make a responsive full screen Lottie animation with Webflow?

TL;DR
  • Upload and add your Lottie .json file in Webflow using the Lottie element and set it to autoplay or loop as needed.  
  • Style the container with 100% width, 100vh height, and absolute or fixed position with all offsets at 0; use object-fit: cover and adjust Z-index for layering and responsiveness.

To create a responsive full-screen Lottie animation in Webflow, you need to import the animation properly and set the container's styles correctly to make it fill the viewport.

​

1. Prepare and Upload Your Lottie File

​

  • Create your Lottie animation using tools like After Effects + Bodymovin plugin or use one from LottieFiles.
  • Make sure the animation is optimized for web — minimal file size, and suitable aspect ratio.
  • In Webflow, go to the Assets panel, click the Upload icon, and select your .json Lottie file.

​

2. Add the Lottie Animation to the Page

​

  • Drag a Lottie element from the Add panel (under Media) onto your canvas.
  • In the Lottie settings on the right panel, select your uploaded file.
  • Set the playback behavior:
  • Loop for continuous animation.
  • Autoplay if you want it to start immediately.
  • You can also link it to scroll or interactions.

​

3. Make the Lottie Fill the Screen

​

  • Select the Lottie element container and do the following:
  • Set Width: 100%.
  • Set Height: 100vh (to fill the full viewport height).
  • Set Position: Absolute or Fixed if you want it behind other elements.
  • If using Absolute or Fixed, set all offsets (top, bottom, left, right) to 0px to fully contain it.
  • Set Z-index to place the animation above or below other content as needed.

​

4. Ensure Responsive Behavior

​

  • In style settings for the Lottie element itself:
  • Set Width: 100%.
  • Set Height: 100%.
  • Set Object Fit: Cover if needed to prevent letterboxing.
  • Check responsiveness across breakpoints — you may want to tweak object-fit or scaling behavior on mobile.

​

5. Optional: Place Content Over the Animation

​

  • To layer text or UI over the animation:
  • Wrap the Lottie animation and your content in a div block with Position: Relative.
  • Set the Lottie instance to Position: Absolute with Z-index: -1.
  • Keep your content at Z-index: auto or higher so it sits on top.

​

Summary

​

To make a responsive full-screen Lottie animation in Webflow, upload the .json file, add a Lottie element, set its container to 100vw x 100vh, and use absolute or fixed positioning with 100% width/height. Use object-fit and Z-index to ensure proper layout and layering for responsiveness across devices.

Rate this answer

Other Webflow Questions