How To Add Lottie Animations In Divi 5 (Native Module)

by | Oct 4, 2025 | Etcetera | 0 comments

Movement grabs consideration a lot better than static photographs. Many of us keep away from including animated graphics as a result of they believe it approach putting in a variety of additional plugins, downloading giant information that gradual issues down, or finding out code.

Lottie animations are other. They keep sharp at any measurement, load rapid, and infrequently occupy house. We’ll stroll you via including them directly into Divi 5 the usage of the now integrated Lottie Module.

What Are Lottie Animations?

Lottie animations are JavaScript Object Notation (JSON) information that retailer movement graphics as code as an alternative of pixels. They’re incessantly repeatedly smaller than related GIFs (often 5–10&occasions; smaller), whilst staying crisp. A standard GIF that could be 5MB as a video turns into 50KB as a Lottie report.

A small icon animation scales completely to fill all of your display. GIFs save each and every body as a separate symbol. Lottie information inform your browser how to attract the animation. You’ll additionally trade colours, velocity, and timing through modifying the JSON code at once.

Since they’re vector-based as an alternative of pixels, you’ll stretch them to any measurement with out shedding sharpness.

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

How To Upload Lottie Animations To Your Divi 5 Website online

Including Lottie animations on your website online the usage of Divi 5 is terribly simple. Those 5 steps display you find out how to get issues arrange and get started including animated graphics on your pages with none additional plugins very quickly.

1. Allow JSON Uploads On Your Website

WordPress blocks JSON information through default as it treats them as doable safety dangers. JSON information can include executable code that malicious actors may use to compromise your website online. So, at all times add JSON information from resources and consider.

The most simple approach makes use of a plugin known as File Upload Types. Set up it out of your WordPress dashboard, then move to Settings and to find Report Add Varieties to unblock the JSON report kind.

A screenshot of File Upload Types' page where JSON has been enabled

If you happen to desire no longer the usage of a plugin, upload this snippet on your kid theme’s purposes.php report as an alternative:

serve as add_json_upload_support($mimes) {
$mimes['json'] = 'utility/json';
go back $mimes;
}
add_filter('upload_mimes', 'add_json_upload_support');

Each strategies paintings completely. The plugin direction takes much less time and calls for no technical wisdom, whilst the code approach helps to keep your website online lighter through keeping off some other plugin set up. At all times again up your website online earlier than making any adjustments.

See also  Divi Product Highlight: Milly Child Theme

2. To find Your Lottie Animation And Add It

Get started through downloading your animation report from whichever supply you like. Maximum platforms come up with layout choices whilst you obtain, so be sure you make a selection JSON. Take time to regulate colours and sizing at the obtain web page since Divi received’t assist you to trade those later.

Head into your web page editor and open the Visible Builder. Whilst you click on the grey plus icon so as to add components, the Lottie module will seem along the opposite Divi modules. Upload it on your web page, and the settings panel will open routinely.

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

The module begins with an empty add space looking forward to your report. Click on the Lottie animations tab, then add your JSON report as if you happen to’d upload any symbol on your media library.

As soon as you choose your report, the animation immediately seems to your builder with a reside preview appearing how guests will see it.

3. Configure Triggers, Loop, Route, And Velocity

As soon as your animation uploads, you want to set when it performs and the way it appears to be like. Divi 5 splits those controls between the Content material and Design tabs.

Make a selection Your Animation Cause

The Cause Animation environment controls when your animation begins. 5 choices quilt other person interactions:

  • Load performs the animation when the web page finishes loading. Just right for components that are supposed to get started transferring instantly.
  • View waits till the animation space enters the customer’s display. This protects processing energy and creates a disclose impact as folks scroll.
  • Hover turns on when any individual strikes their cursor over the animation. This works for interactive components, however understand that cell gadgets can’t hover.
  • Click on calls for a faucet or click on to begin. Use this when you need planned person motion to cause the movement.
  • Scroll connects animation growth to scroll place. The animation strikes ahead as guests scroll down and reverses once they scroll again up.

Loop Animation Toggle

The Loop Animation environment determines whether or not your animation repeats. Flip it on for ornamental components that are supposed to stay transferring ceaselessly. Loading spinners, background graphics, and ambient results paintings smartly with looping enabled.

Disable looping for front animations that are supposed to play as soon as and prevent. Name-to-action unearths, textual content animations, and one-time results glance higher once they whole and cling their ultimate body.

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

Animation Velocity Keep watch over

Velocity defaults to at least one for anticipated playback timing. You’ll bump this quantity up or down to modify how briskly your animation runs.

Set it to 0.5 for part velocity when you need slower movement. This works smartly for sublime transitions or when your animation feels rushed. Crank it as much as 2 for double velocity when you want snappier motion. Fast speeds paintings nice for hover results or loading signs.

You’ll use decimal values, too. Take a look at 0.75 for relatively slower movement or 1.5 for rather quicker playback.

See also  Gender Impartial Pronouns: What They Are & Tips on how to Use Them

Route And Play Mode Choices

Route controls which manner your animation performs. Ahead runs the animation from begin to end as designed. Backward flips all of the series, enjoying from the closing body again to the primary.

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

Play Mode provides two behaviors. Commonplace performs your animation from starting to finish as soon as (or helps to keep going if looped). Jump creates a back-and-forth impact. The animation performs ahead to crowning glory, then reverses again to the beginning body. Recall to mind a pendulum movement that works smartly for crowd pleasing components.

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

4. Alter The Dimension And Design

The Design tab homes all visible changes. You get same old Divi controls right here.

A screenshot of the design tab of Lottie settings

Sizing accepts advanced CSS units as an alternative of simply pixel values. Kind 100vw to fill the display width or use one thing like a clamp(7vw, 8rem, 10vw) for responsive scaling between minimal and most values.

A screenshot of using clamps and advanced values in Lottie sizing options

Design Variables paintings right here too, letting you reference constant measurements throughout your website online.

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

Alignment positions the animation inside of its container. Pick out horizontal alignment (left, middle, proper). Spacing controls margins and padding across the animation to forestall crowding with close by content material.

A screenshot of module alignment options in the design tab

You’ll additionally upload borders, transforms for rotation and scaling, filters for colour and blur changes, and field shadows for intensity if required. Those layers are on best of your base animation.

5. Wonderful-Music Choices For Responsiveness

Get started through environment your breakpoints, if wanted. Divi 5 expands from 3 fastened breakpoints to seven customizable ones. You’ll regulate the pixel values for each and every breakpoint to compare your design wishes:

  • Telephone: < 767px (adjustable)
  • Telephone Huge: < 860px (adjustable)
  • Pill: < 980px (adjustable)
  • Pill Huge: < 1024px (adjustable)
  • Desktop: > 981px (adjustable)
  • Widescreen: > 1280px (adjustable)
  • Extremely Huge: > 1440px (adjustable)

You’ll to find those choices through clicking at the kebab menu at the best bar. First, flip at the breakpoints you suppose you want, after which the scale box to customise it to what you want. Then, click on any breakpoint to modify your canvas to that measurement. The canvas scales rather so you’ll design for ultra-wide displays even on a small computer display.

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

Switching to a breakpoint opens a panel for adjustments that observe simplest to that breakpoint. This makes it simple to conform your Lottie animations for each and every breakpoint.

The use of The Responsive Editor

The Responsive Editor means that you can regulate responsive, hover, and sticky states for any environment with out switching view modes. Click on the responsive editor icon subsequent to any environment to look all breakpoint values concurrently in a single panel.

The responsive editor icon turns blue when a environment has other values throughout breakpoints. This visible indicator presentations which settings have customized responsive changes with out opening each and every breakpoint for my part.

You’ll regulate values throughout all breakpoints from this unmarried interface. You’ll kind other animation speeds for desktop, pill, and cell with out switching between view modes. The editor updates all states immediately whilst you keep to your present view.

Adjusting Dimensions Throughout Breakpoints

Desktop animations paintings very best with better dimensions since there’s quite a lot of display house. A hero segment Lottie animation may also be 600px huge at the desktop, taking complete benefit of that beneficiant viewport.

See also  Best 15 Equipment for Efficient Site Visitors Research

Pill breakpoints want average measurement discounts. That very same icon 100px desktop animation will have to scale to round 90px on a pill. This maintains visible stability with out overwhelming your structure. Cell breakpoints require vital measurement changes. Your 100px desktop animation must shrink to 80px or smaller on telephones. Huge animations will dominate cell displays and push necessary content material beneath the fold.

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

Divi means that you can customise Lottie animation sizes for each breakpoint. For a extra hands-off way, believe the usage of percentage-based or viewport-based widths to automate scaling. You’ll additionally use clamp() for higher and proportionate tool scaling.

Optimizing Animations For Other Units

Cell gadgets procedure animations otherwise from desktops. Contact interactions exchange hover states, processing energy varies, and display house turns into restricted.

Responsive Lottie animations in Divi 5 transcend fundamental scaling to come up with actual regulate throughout display sizes. You’ll edit each environment to conform to other breakpoints, together with converting the Lottie report itself for each breakpoint.

Since hover results don’t paintings on touchscreens, transfer hover triggers to “View” for cell breakpoints. The “View” cause turns on when animations scroll into the viewport.

A screenshot of adjusting triggers for various breakpoints

However, use “Click on” triggers on cell for planned person interactions, giving guests regulate over timing.

Velocity additionally must be adjusted between gadgets. Desktop animations at customary velocity incessantly run too rapid on cell. Drop velocity from 1.0 to 0.75 for smoother cell playback.

A screenshot of adjusting animation speed for various breakpoints

In the end, believe looping habits. Ornamental background animations paintings smartly with steady looping on desktop, however drain cell battery. Disable loops on cell breakpoints for purely aesthetic animations to reinforce efficiency and battery lifestyles.

Take a look at Lottie Animations In Divi 5 These days

You’ve now finished all of the technique of including Lottie animations on your Divi 5 website online. Those graphics received’t decelerate web page quite a bit or drive you to maintain complicated plugins.

Lottie information function otherwise: they use vectors somewhat than pixel information, so that you get top quality movement graphics which might be tiny in report measurement and scale flawlessly throughout all display sizes.

Get started with one thing easy to get used to the workflow. When you see how smartly it really works, you’ll most likely spot different puts so as to add small touches. Take into accout: the most efficient animations really feel herbal and fortify your content material, no longer compete with it.

The put up How To Add Lottie Animations In Divi 5 (Native Module) gave the impression first on Elegant Themes Blog.

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!