How To Find And Use Lottie Animations For Your Website

Posted on September 28, 2025 by Leave a Comment

How To Find And Use Lottie Animations For Your Website
Blog / Design / How To Find And Use Lottie Animations For Your Website

Animations can make your sites feel alive, but most designers avoid them because they slow down loading speeds. The choice seems simple: either you get a website that crawls or a fast-loading one that feels flat and lifeless.

Well, that used to be the case until Lottie arrived. This post covers what Lottie brings to the table, how it differs from old methods, and how Divi 5 lets you add these animations to your sites without touching code. Let’s dive in!

What Are Lottie Animations?

Lottie animations are lightweight, JSON-based vector animations. They’re often much smaller than GIFs but keep the same or better quality (5-10x smaller).

Lottie originated from Bodymovin, an After Effects plugin that exports animations as JSON. Engineers at Airbnb later built libraries to run these animations on different platforms.

Lottie files are vector-based, instead of pixels. You can stretch them big or small without getting blurry pixels. You can also edit colors, speed, and timing by changing the code directly. They work on phones, computers, and any device with a web browser.

A visual representation of how raster image scale compared to vector images

Lottie caught on because they load fast. Really fast. JSON makes data exchange super efficient, which is why these animations load so much faster than older formats.

What Makes Lottie Different From GIFs

GIFs and Lottie basically appear the same. Both are non-video files that have movements and animations. But when you compare these two formats side by side, the differences become clear really fast:

FeatureLottieGIF
File Size1KB-3MB1-15MB for short clips
QualityVector-based, stays crispPixel-based, gets blurry when scaled
ColorsFull device color rangeLimited to 256 colors
CustomizationEdit after export via JSONMust recreate from scratch
Loading SpeedFast due to tiny file sizesSlow, impacts page performance
ScalabilityInfinite without quality lossPixelates when enlarged
Frame RateUp to 123 FPSTypically 15-24 FPS

The main difference is how they store animation. GIFs save separate image frames like a flipbook. Lottie files use math to rebuild the animation in real time. That makes Lotties smaller, crisper, and more flexible.

Where To Find Lottie Files

LottieFiles is your best starting point. You can download free files, customize colors and timing, and export them for your projects. Their community uploads new stuff daily.

A screenshot of LottieFiles' homepage

IconScout combines Lottie animations with its icon library, which is good for maintaining visual consistency across your site. It offers editing tools and format conversion so that you can download as JSON, GIF, or MP4.

A screenshot of IconScout's homepage

For simpler needs, Creattie keeps things straightforward. You can access their free animations, and their collection focuses on practical business animations that work on real sites. Premium subscribers get editor access to adjust colors and speed settings.

A screenshot of Creattie's homepage

Most platforms export standard JSON files that work everywhere. Some add backup formats for platforms that don’t support Lottie yet. Free tiers usually give you basic downloads, while paid plans unlock editing features and higher quality exports.

How To Use Lottie Animations On Your Website

Adding Lottie animations depends on how you build your site. If you code from scratch, include the Lottie script in your HTML and link it to your JSON file. You can control size, speed, loop, and triggers with JavaScript.

In WordPress, the simplest method is to add an HTML code block. Within the same code block, you can control the size, speed, and looping. However, this method isn’t very intuitive because you can’t preview the animation in the editor.

Plugins like Lottie Player and some Gutenberg addons give you more options, but advanced interactions and detailed controls are usually paid features. Gutenberg can feel awkward for animation work, and copying animated sections across pages often becomes manual and repetitive.

A screenshot of Lottie Player's listing on WordPress plugin repo

However, modern WordPress page builders such as Divi 5 include Lottie support, removing the need for extra plugins and giving you full control without writing code.

Divi 5 Makes It Easy To Add Lotties To Your Website

For years, WordPress designers have been frustrated by the difficulty of getting animations to work. The choice usually involves wrestling with complicated plugins or diving into custom code. Divi 5 changes this with its built-in approach to Lottie animations.

Divi 5 Is A Rebuilt + More Powerful Version Of Divi

Divi 5 rebuilds everything from the ground up rather than just updating what existed before. We spent over two and a half years rewriting every feature, setting, and interaction to create a more powerful foundation.

A screenshot of Divi 5's new home page

The new framework works even better with current WordPress standards and opens up possibilities that weren’t available before. This shift affects how you build layouts, design elements, and responsive sites.

What’s Changed?

  • Complete codebase rebuild eliminates shortcodes and adopts a block-based storage format that aligns with WordPress’s block editor. Sites load faster because Divi only loads the modules you use on each page.
  • The Flexbox Layout System replaces the old fixed block layouts with Flexbox, which give you precise control over alignment, spacing, and how elements stack and flow.
  • Design Variables store colors, fonts, numbers, images, text, and URLs as reusable values. If you change your primary brand color once, it will update across your entire site.
  • Relative Colors & HSL make color management mathematical. Create color relationships that automatically adjust based on your base colors, plus full HSL controls.
  • Option Group Presets build reusable style blocks for typography, borders, shadows, and backgrounds. Create them once, then apply them to any element type.
  • WooCommerce Modules includes product-focused modules for custom product pages and category pages. Cart and checkout modules are coming soon.
  • New Modules add the Group Carousel for any slider, the Lottie Module for JSON animations, and the Icon List for custom lists.
  • Loop Builder dynamically pulls content from any post type. It works with WooCommerce products, ACF fields, custom post types, and repeater fields.
  • Support for Advanced CSS units like REM, VW, VH, clamp(), calc(), min(), and max() without writing code. Visual sliders and inputs handle the technical stuff.
  • Nested Rows lets you drop rows inside other rows with unlimited nesting for complex layouts.
  • Interactions lets you build popups, toggles, mouse effects, and scroll animations without extra plugins.
  • Responsive Editor lets you view and modify responsive, hover, and sticky states for any setting across all screen sizes.
  • The Visual Builder Interface includes dockable panels, a tabbed interface, light and dark modes, keyboard shortcuts, and better layer navigation with breadcrumbs.

A Quick Overview Of Using Divi 5’s Lottie Module

Divi 5’s Lottie Module streamlines the entire workflow into six straightforward steps. These steps get you from zero to a striking website and show you how animations integrate with your site’s design system. Everything stays consistent and becomes part of your website’s visual language without creating isolated elements that stick out.

1. Determine Your Lottie Source

There are two ways to get Lottie animations on your website. Choose based on how much control you want versus speed.

The fastest route uses files directly from platforms like LottieFiles or IconScout. You select the Lottie file you like, customize it, and download its JSON file. It’s quick and easy. However, these sites often restrict how many you can download or customize, etc.

You can create animations from scratch in After Effects for total control. Your brand gets precisely what it needs without any download restrictions. You avoid the sameness of popular Lottie libraries. But this is the hardest way since it requires you to know how to use After Effects and need computing power to render.

A screenshot of LottieFiles plugin in after effects, provided by LottieFiles Youtube Channel

Image by LottieFiles

Pick whichever makes sense for your business. One thing to know: you cannot change the colors of your Lottie files inside Divi 5. The colors stay the same as the original file. But most Lottie websites let you pick specific colors and stroke widths before downloading them.

2. Enabling JSON Uploads

As explained, Lottie files are JSON files. However, JSON files can carry payloads that exploit vulnerabilities in how websites process data. Someone could disguise malware as an innocent animation file. They can also include scripts that run on your server or trick other systems into running dangerous commands.

Though legitimate JSON files, like Lottie animations from trusted sources, pose minimal risk when appropriately handled. So, be mindful of where you are getting your files from.

Due to this security risk, WordPress errs on the side of caution by blocking these uploads entirely.

So, to upload your JSON file, you need to tell WordPress to start accepting them. One option is the File Upload Types plugin, which lets you check boxes for different file formats.

A screenshot of File Upload Types' user interface from their Repo page

Image by File Upload Types

Always back up your site first and only upload JSON files from sources you know and trust.

3. Adding the Lottie Module To Your Page

Adding the Lottie Module works like adding any other Divi module. Open the Visual Builder on your page and click the plus icon to add elements. The Lottie Module will appear in the module list alongside the others.

A screenshot of where to find the lottie module in Divi 5

Once you add the Lottie Module, you can start configuring your animation source. As mentioned, you need to enable the JSON uploads first.

4. Configuring Animation Playback Settings

Once your Lottie Module loads, you access several playback controls that determine how your animation behaves. The Trigger Animation setting lets you choose when the animation starts: on load, view, hover, click, or scroll to animate.

Scroll to Animate is interesting: it creates interactive effects by tying animation progress directly to user scrolling behavior. As users scroll down the page, the animation progresses frame by frame. This makes the animation an interactive element that responds to scrolling instead of playing automatically when the page loads.

The Loop Animation toggle keeps your animation running continuously.

A screenshot of where to find the loop animation option in Divi 5

You can adjust Animation Speed to control how fast the animation plays.

Direction control lets you run animations forward or backward.

A screenshot of where to find the direction option in Divi 5

The Play Mode offers Normal playback or Bounce, which reverses direction at the end.

A screenshot of where to find the play mode option in Divi 5

5. Fine-tuning With Divi’s Design Controls

The Design tab gives you control over the look of your Lottie animation. You can change its size, alignment, height, spacing, and position it exactly where you want it on the page.

Divi 5 lets you use all its design settings on Lottie Modules. You can add transforms, filters, and box shadows. These create transition effects that work with your animation. The settings help you make more complex visual experiences.

Pro tip: Instead of using hardcoded pixels to size your Lottie files, use advanced units saved as Design Variables. There are several Design Variable options. We won’t go into too much in this post, but here’s an excellent guide.

A screenshot of using clamp() values with vw and rems being used in lottie icons

Swapping out regular hardcoded values with your Design Variables keeps your website connected to its overall design system. When you change the values in the Design Variables, they automatically update everywhere they are used. This makes it quick to make changes whenever needed, especially when you are working with clients.

A large animation might work great on a desktop, but overwhelm mobile users. You can slow down animations on touch devices where users interact differently, or shrink complex animations that become hard to see on small screens.

Some animations might need different positioning on mobiles and tablets, where content flows differently.

The Responsive Editor works with Divi 5’s customizable breakpoints.

A screenshot of where to find the responsive editor option in Divi 5

Instead of the old three-device limit, you can set up to seven breakpoints.

A screenshot of where to find and enable breakpoints in Divi 5

Switch between these breakpoints to test how your animations look on each screen size and make quick adjustments. Advanced units like clamp() also allow you to skip the hassle of adjusting for each breakpoint.

6. Create Reusable Presets From Lottie Setups

Once your Lottie animation is working perfectly, save those settings for future use. Divi 5 offers two ways to do this with presets.

Option Group Presets save specific style groups from your Lottie Module. You might save the spacing settings, border styles, or transform effects as separate Option Group Presets. These work across any module type, not just Lottie. Your animation spacing preset could also style image modules or text blocks.

Click the preset icon on the specific setting tab, label it appropriately, and save.

A screenshot of where to find the option group preset option in Divi 5

When you must apply the same options, click on the same icon in the other module and select the preset you saved.

These presets work across any module type. Your animation spacing preset could also style image modules or text blocks, or vice versa. Update the preset once to change every linked element across your site.

Element Presets, on the other hand, capture your entire Lottie Module setup except the actual animation file. This includes the trigger settings, speed, direction, and all design properties.

You can save a perfectly configured Lottie animation as an Element Preset by clicking on the preset icon at the top left of the panel. Then, you can apply it to other pages with one click. If you update the preset later, every instance across your site changes automatically.

A screenshot of where to create element presets

This two-layer approach gives you flexibility. Build your design foundation with Option Group Presets, then combine them into complete packages with Element Presets.

Use Lottie Animations In Divi 5 Today

Lottie files give you rich motion graphics at a fraction of a GIF file size. While there are several ways to add Lottie files to your site, including WordPress plugins, Divi 5 puts them at your fingertips through simple drag-and-drop controls.

Also, style once as Option Group Presets and apply those same design rules to any module on your site. Build your spacing, transforms, and effects into reusable blocks that keep everything consistent. Your animations become part of a larger design language instead of random moving pieces scattered around your pages.

Download Divi 5 and build sites with systems, not chaos.

Divi

Want To Build Better WordPress Websites? Start Here! 👇

Take the first step towards a better website.

Get Started
Divi
Premade Layouts

Check Out These Related Posts

The Power Of Flexbox In Responsive Web Design

The Power Of Flexbox In Responsive Web Design

Posted on September 21, 2025 in Design

Traditional layout methods often break at smaller widths. Content misaligns, spacing collapses, and manual fixes pile up. Flexbox solves this by defining relationships instead of fixed positions. In Divi 5, these controls live in the Visual Builder, and the new Flexbox release makes alignment,...

View Full Post
A Beginner’s Guide To Flexbox CSS Properties

A Beginner’s Guide To Flexbox CSS Properties

Posted on September 20, 2025 in Design

Good layout starts with a clear model for alignment and spacing. Flexbox provides that model by organizing content along a single axis with predictable control over direction, alignment, wrapping, and gap. This post covers the basics of these CSS properties and how they work together. After the...

View Full Post
Flexbox vs CSS Grid: How Do They Compare?

Flexbox vs CSS Grid: How Do They Compare?

Posted on September 16, 2025 in Design

Flexbox and Grid are the two layout systems that define modern CSS. At first glance, they seem similar. Both handle rows and columns, manage alignment and spacing, and replace the old float-and-table workarounds. The real difference is in how they approach layout challenges and the kind of problems...

View Full Post

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi