How Do I Add Lottie Files to Webflow?

If you’re looking to add Lottie files to your Webflow project, you’ve come to the right place! Lottie files are a great way to bring life and interactivity to your website with beautiful animations. In this tutorial, we’ll walk you through the process of adding Lottie files to your Webflow site step by step.

What are Lottie Files?

Lottie files are lightweight and scalable animations created using Adobe After Effects. They are exported in JSON format and can be easily integrated into web projects. Lottie files have become increasingly popular because they offer smooth and high-quality animations that can be used across different platforms.

Step 1: Get the Lottie File

The first step is to find or create the Lottie file that you want to use on your Webflow site. You can search for free or premium Lottie files on websites like or even create your own animation in After Effects and export it as a JSON file.

Step 2: Upload the Lottie File

Once you have the Lottie file ready, log in to your Webflow account and open the project where you want to add the animation. Go to the Assets panel and click on the “Upload” button. Select the JSON file of your Lottie animation from your computer, and it will be uploaded to your project.

Step 3: Add an Embed Element

To display the Lottie animation on your Webflow site, we need to add an Embed element. Drag and drop an Embed element onto the desired page or section where you want the animation to appear.

Step 4: Copy & Paste Embed Code

Now, open the Lottie file in your Webflow project’s Assets panel and click on the “Copy Embed Code” button. Go back to your Webflow Designer and paste the copied embed code inside the Embed element you added earlier.

Step 5: Customize the Animation

You can customize various aspects of the Lottie animation to fit your website design. For example, you can adjust the size of the animation by modifying the width and height attributes in the embed code. You can also control its position using CSS properties like margin or absolute positioning.

Step 6: Publish and Test

Once you’re satisfied with how the Lottie animation looks on your Webflow site, it’s time to publish your changes. Click on the “Publish” button to make your site live. Open your published website in a browser and test the animation to ensure it works as expected.

Troubleshooting Tips:

  • If your Lottie animation doesn’t appear, double-check if you properly pasted the embed code into the Embed element.
  • Make sure that any custom CSS you have applied to the element containing the Lottie animation doesn’t interfere with its visibility or positioning.
  • If you’re experiencing performance issues, consider optimizing your Lottie file using tools like


Adding Lottie files to your Webflow site is a fantastic way to enhance user experience with eye-catching animations. By following these steps, you’ll be able to seamlessly integrate Lottie animations into your projects. So go ahead, get creative, and bring life to your web designs!

Remember: With Lottie files, the sky’s the limit when it comes to creating engaging and interactive experiences for your website visitors.