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 pictures. Many of us steer clear of including animated graphics as a result of they suspect it approach putting in a whole lot of additional plugins, downloading large information that gradual issues down, or studying code.

Lottie animations are other. They keep sharp at any dimension, load rapid, and rarely occupy area. 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 ceaselessly repeatedly smaller than related GIFs (frequently 5–10&occasions; smaller), whilst staying crisp. An ordinary GIF that could be 5MB as a video turns into 50KB as a Lottie document.

A small icon animation scales completely to fill your whole 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, pace, and timing by means of modifying the JSON code at once.

Since they’re vector-based as an alternative of pixels, you’ll stretch them to any dimension 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 Site

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

1. Permit JSON Uploads On Your Web site

WordPress blocks JSON information by means of default as it treats them as doable safety dangers. JSON information can include executable code that malicious actors may use to compromise your website. So, at all times add JSON information from assets you already know and believe.

The most simple manner makes use of a plugin known as File Upload Types. Set up it out of your WordPress dashboard, then cross to Settings and to find Record Add Sorts to unblock the JSON document kind.

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

For those who favor now not the usage of a plugin, upload this snippet for your kid theme’s purposes.php document 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 path takes much less time and calls for no technical wisdom, whilst the code manner helps to keep your website lighter by means of averting some other plugin set up. All the time again up your website earlier than making any adjustments.

See also  Tips on how to Upload Klarna Bills to WordPress (2 Simple Tactics)

2. In finding Your Lottie Animation And Add It

Get started by means of downloading your animation document from whichever supply you like. Maximum platforms provide you with structure choices while you obtain, so you should definitely choose JSON. Take time to regulate colours and sizing at the obtain web page since Divi gained’t permit you to trade those later.

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

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

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

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

3. Configure Triggers, Loop, Path, And Velocity

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

Select Your Animation Cause

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

  • Load performs the animation when the web page finishes loading. Just right for parts that are meant to get started transferring in an instant.
  • View waits till the animation house enters the customer’s display. This protects processing energy and creates a divulge impact as folks scroll.
  • Hover turns on when any individual strikes their cursor over the animation. This works for interactive parts, however remember the fact that cellular units can’t hover.
  • Click on calls for a faucet or click on to start out. Use this when you need planned consumer 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 parts that are meant to stay transferring ceaselessly. Loading spinners, background graphics, and ambient results paintings neatly with looping enabled.

Disable looping for front animations that are meant to play as soon as and forestall. Name-to-action finds, textual content animations, and one-time results glance higher once they entire and grasp 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 pace when you need slower movement. This works neatly for sublime transitions or when your animation feels rushed. Crank it as much as 2 for double pace when you wish to have snappier motion. Fast speeds paintings nice for hover results or loading signs.

You’ll use decimal values, too. Check out 0.75 for reasonably slower movement or 1.5 for fairly sooner playback.

See also  How to Reorganize a Divi Cloud Item

Path And Play Mode Choices

Path controls which manner your animation performs. Ahead runs the animation from begin to end as designed. Backward flips all of the series, taking part in from the remaining body again to the primary.

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

Play Mode provides two behaviors. Customary performs your animation from starting to finish as soon as (or helps to keep going if looped). Leap creates a back-and-forth impact. The animation performs ahead to finishing touch, then reverses again to the beginning body. Call to mind a pendulum movement that works neatly for crowd pleasing parts.

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

4. Regulate 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. Sort 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.

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

Alignment positions the animation inside its container. Select horizontal alignment (left, heart, proper). Spacing controls margins and padding across the animation to stop 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 most sensible of your base animation.

5. Tremendous-Song Choices For Responsiveness

Get started by means of environment your breakpoints, if wanted. Divi 5 expands from 3 mounted 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 by means of clicking at the kebab menu at the most sensible bar. First, flip at the breakpoints you suppose you wish to have, after which the dimensions box to customise it to what you wish to have. Then, click on any breakpoint to modify your canvas to that dimension. The canvas scales somewhat so you’ll design for ultra-wide displays even on a small pc display.

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

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

The usage of The Responsive Editor

The Responsive Editor allows you to 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 peer 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 displays which settings have customized responsive changes with out opening each and every breakpoint personally.

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

Adjusting Dimensions Throughout Breakpoints

Desktop animations paintings absolute best with higher dimensions since there’s numerous display area. A hero phase Lottie animation may also be 600px large at the desktop, taking complete benefit of that beneficiant viewport.

See also  Introducing Divi Dash! Your New WordPress Site Manager

Pill breakpoints want average dimension discounts. That very same icon 100px desktop animation must scale to round 90px on a pill. This maintains visible stability with out overwhelming your format. Cellular breakpoints require important dimension changes. Your 100px desktop animation must shrink to 80px or smaller on telephones. Massive animations will dominate cellular displays and push essential content material beneath the fold.

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

Divi allows you to customise Lottie animation sizes for each and every breakpoint. For a extra hands-off method, imagine 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 Gadgets

Cellular units procedure animations otherwise from desktops. Contact interactions change hover states, processing energy varies, and display area turns into restricted.

Responsive Lottie animations in Divi 5 transcend fundamental scaling to provide you with actual keep watch over throughout display sizes. You’ll edit each and every environment to evolve to other breakpoints, together with converting the Lottie document itself for each and every breakpoint.

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

A screenshot of adjusting triggers for various breakpoints

Then again, use “Click on” triggers on cellular for planned consumer interactions, giving guests keep watch over over timing.

Velocity additionally must be adjusted between units. Desktop animations at commonplace pace ceaselessly run too rapid on cellular. Drop pace from 1.0 to 0.75 for smoother cellular playback.

A screenshot of adjusting animation speed for various breakpoints

After all, imagine looping conduct. Ornamental background animations paintings neatly with steady looping on desktop, however drain cellular battery. Disable loops on cellular breakpoints for purely aesthetic animations to support efficiency and battery lifestyles.

Check out Lottie Animations In Divi 5 As of late

You’ve now finished all of the technique of including Lottie animations for your Divi 5 website. Those graphics gained’t decelerate web page a lot or drive you to care for advanced plugins.

Lottie information perform otherwise: they use vectors fairly than pixel knowledge, so that you get high quality movement graphics which are tiny in document dimension and scale flawlessly throughout all display sizes.

Get started with one thing easy to get used to the workflow. If you see how neatly it really works, you’ll most likely spot different puts so as to add small touches. Have in mind: the most productive animations really feel herbal and make stronger your content material, now not 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!