Movement grabs consideration significantly better than static photographs. Many of us steer clear of including animated graphics as a result of they suspect it way putting in a lot of further plugins, downloading giant recordsdata that sluggish issues down, or studying code.
Lottie animations are other. They keep sharp at any measurement, load speedy, and rarely occupy house. We’ll stroll you thru including them immediately into Divi 5 the use of the now integrated Lottie Module.
What Are Lottie Animations?
Lottie animations are JavaScript Object Notation (JSON) recordsdata that retailer movement graphics as code as an alternative of pixels. They’re regularly time and again smaller than similar GIFs (frequently 5–10× smaller), whilst staying crisp. An ordinary 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 screen. GIFs save every body as a separate symbol. Lottie recordsdata inform your browser how to attract the animation. You’ll be able to additionally alternate colours, pace, and timing through enhancing the JSON code at once.
Since they’re vector-based as an alternative of pixels, you’ll be able to stretch them to any measurement with out dropping sharpness.

How To Upload Lottie Animations To Your Divi 5 Web page
Including Lottie animations for your web site the use of Divi 5 is very simple. Those 5 steps display you easy methods to get issues arrange and get started including animated graphics for your pages with none further plugins very quickly.
1. Permit JSON Uploads On Your Website
WordPress blocks JSON recordsdata through default as it treats them as attainable safety dangers. JSON recordsdata can include executable code that malicious actors may use to compromise your web site. So, at all times add JSON recordsdata from assets and consider.
The most straightforward manner makes use of a plugin known as Document Add Sorts. Set up it out of your WordPress dashboard, then pass to Settings and to find Document Add Sorts to unblock the JSON report sort.

For those who favor now not the use of a plugin, upload this snippet for 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 course takes much less time and calls for no technical wisdom, whilst the code manner assists in keeping your web site lighter through warding off any other plugin set up. All the time again up your web site earlier than making any adjustments.
2. To find Your Lottie Animation And Add It
Get started through downloading your animation report from whichever supply you favor. Maximum platforms come up with structure choices while you obtain, so you’ll want to choose JSON. Take time to regulate colours and sizing at the obtain web page since Divi gained’t mean you can alternate 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 components, the Lottie module will seem along the opposite Divi modules. Upload it for your web page, and the settings panel will open mechanically.

The module begins with an empty add house looking ahead to your report. Click on the Lottie animations tab, then add your JSON report as if you happen to’d upload any symbol for your media library.
As soon as you choose your report, the animation immediately seems for your builder with a are living 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 seems. Divi 5 splits those controls between the Content material and Design tabs.
Select Your Animation Cause
The Cause Animation atmosphere controls when your animation begins. 5 choices duvet other consumer interactions:
- Load performs the animation when the web page finishes loading. Excellent for components that are meant to get started shifting immediately.
- View waits till the animation house enters the customer’s display screen. This protects processing energy and creates a expose impact as other folks scroll.
- Hover turns on when anyone strikes their cursor over the animation. This works for interactive components, however understand that cellular units can’t hover.
- Click on calls for a faucet or click on to start out. Use this when you wish to have planned consumer motion to cause the movement.
- Scroll connects animation growth to scroll place. The animation strikes ahead as guests scroll down and reverses after they scroll again up.
Loop Animation Toggle
The Loop Animation atmosphere determines whether or not your animation repeats. Flip it on for ornamental components that are meant to stay shifting steadily. 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 prevent. Name-to-action unearths, textual content animations, and one-time results glance higher after they entire and hang their ultimate body.

Animation Velocity Regulate
Velocity defaults to at least one for anticipated playback timing. You’ll be able to bump this quantity up or down to modify how briskly your animation runs.
Set it to 0.5 for part pace when you wish to have 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 want snappier motion. Fast speeds paintings nice for hover results or loading signs.
You’ll be able to use decimal values, too. Check out 0.75 for rather slower movement or 1.5 for rather sooner playback.
Route And Play Mode Choices
Route controls which method your animation performs. Ahead runs the animation from begin to end as designed. Backward flips all the series, taking part in from the ultimate body again to the primary.

Play Mode gives two behaviors. Standard performs your animation from starting to finish as soon as (or assists in keeping 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 neatly for attention-grabbing components.

4. Alter The Measurement And Design
The Design tab properties all visible changes. You get usual Divi controls right here.

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

Design Variables paintings right here too, letting you reference constant measurements throughout your web site.

Alignment positions the animation inside of its container. Select horizontal alignment (left, heart, proper). Spacing controls margins and padding across the animation to forestall crowding with within reach content material.

You’ll be able to 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. High quality-Song Choices For Responsiveness
Get started through atmosphere your breakpoints, if wanted. Divi 5 expands from 3 mounted breakpoints to seven customizable ones. You’ll be able to alter the pixel values for every breakpoint to compare your design wishes:
- Telephone: < 767px (adjustable)
- Telephone Large: < 860px (adjustable)
- Pill: < 980px (adjustable)
- Pill Large: < 1024px (adjustable)
- Desktop: > 981px (adjustable)
- Widescreen: > 1280px (adjustable)
- Extremely Large: > 1440px (adjustable)
You’ll be able to to find those choices through clicking at the kebab menu at the most sensible bar. First, flip at the breakpoints you suppose you want, after which the dimensions box to customise it to what you want. Then, click on any breakpoint to change your canvas to that measurement. The canvas scales slightly so you’ll be able to design for ultra-wide displays even on a small pc display screen.

Switching to a breakpoint opens a panel for adjustments that follow most effective to that breakpoint. This makes it simple to conform your Lottie animations for every breakpoint.
The use of The Responsive Editor
The Responsive Editor means that you can regulate responsive, hover, and sticky states for any atmosphere with out switching view modes. Click on the responsive editor icon subsequent to any atmosphere to peer all breakpoint values concurrently in a single panel.
The responsive editor icon turns blue when a atmosphere has other values throughout breakpoints. This visible indicator displays which settings have customized responsive changes with out opening every breakpoint personally.
You’ll be able to alter values throughout all breakpoints from this unmarried interface. You’ll be able to sort other animation speeds for desktop, pill, and cellular with out switching between view modes. The editor updates all states immediately when you keep for your present view.
Adjusting Dimensions Throughout Breakpoints
Desktop animations paintings easiest with greater dimensions since there’s various display screen house. A hero segment Lottie animation will also be 600px huge at the desktop, taking complete benefit of that beneficiant viewport.
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 steadiness with out overwhelming your structure. Cellular breakpoints require important measurement changes. Your 100px desktop animation must shrink to 80px or smaller on telephones. Huge animations will dominate cellular displays and push essential content material under the fold.

Divi means that you can customise Lottie animation sizes for each breakpoint. For a extra hands-off means, imagine the use of percentage-based or viewport-based widths to automate scaling. You’ll be able to additionally use clamp() for higher and proportionate tool scaling.
Optimizing Animations For Other Gadgets
Cellular units procedure animations in a different way from desktops. Contact interactions change hover states, processing energy varies, and display screen house turns into restricted.
Responsive Lottie animations in Divi 5 transcend fundamental scaling to come up with actual keep watch over throughout display screen sizes. You’ll be able to edit each atmosphere 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 cellular breakpoints. The “View” cause turns on when animations scroll into the viewport.

However, 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 regularly run too speedy on cellular. Drop pace from 1.0 to 0.75 for smoother cellular playback.

After all, imagine looping habits. Ornamental background animations paintings neatly with steady looping on desktop, however drain cellular battery. Disable loops on cellular breakpoints for purely aesthetic animations to toughen efficiency and battery existence.
Check out Lottie Animations In Divi 5 Nowadays
You’ve now finished all the technique of including Lottie animations for your Divi 5 web site. Those graphics gained’t decelerate web page so much or drive you to take care of advanced plugins.
Lottie recordsdata perform in a different way: they use vectors fairly than pixel information, so that you get top of the range movement graphics which can be tiny in report measurement and scale flawlessly throughout all display screen sizes.
Get started with one thing easy to get used to the workflow. When you see how neatly it really works, you’ll most likely spot different puts so as to add small touches. Consider: the most efficient animations really feel herbal and fortify your content material, now not compete with it.
The publish How To Upload Lottie Animations In Divi 5 (Local Module) gave the impression first on Sublime Issues Weblog.
WordPress Web Design