Web page animations intended gradual load instances and uneven playback, forcing you to choose from compressed GIFs that seemed horrible or huge video information that despatched guests operating.
Lottie modified that dynamic. Those tiny JSON-based movement graphics scale to any display screen measurement with out dropping high quality and play smoother than GIFs ever may. The one drawback is WordPress hasn’t relatively stuck up but, so including them takes a couple of additional steps.
We’ll display you precisely get Lottie information operating for your WordPress website and provide an explanation for the shortcut that Divi 5 provides.
What Are Lottie Recordsdata?
Lottie information are JSON-based animations that retailer movement graphics as code as an alternative of pixels. Presented via Airbnb engineers in 2017, they solved internet animation’s largest drawback: report measurement. A fancy animation that will be 5MB as a video turns into simply 50KB as a Lottie.
You’ll create those in After Results and export the use of the Bodymovin or the LottieFiles plugin. The plugin converts your layers and keyframes into text-based directions. When browsers load this JSON report, they learn the mathematics and draw the animation in actual time.
Because it’s vector math moderately than pixels, the similar report scales completely from telephone monitors to 4K shows with out high quality loss.
How Lottie Recordsdata Paintings
Lottie information are JSON paperwork that describe layers, shapes, and keyframes. A Lottie JSON report is sort of a recipe for animations. On the best, you in finding the fundamentals: body price, period, width, and top. Underneath this is an array of layers. Each and every layer has place, rotation, scale, and opacity, with keyframes that inform when and alternate.
A Lottie report describes movement mathematically, now not as photographs. The participant calculates intermediate frames at the fly, so movement remains easy at any tool body price. Form layers can include teams of paths, fills, strokes, and transforms. Attributes like colour (RGBA arrays), stroke width, and opacity are saved as numeric values.
Lottie Beats GIFs Each Time
Conventional codecs like GIF save each pixel of each body. A 30-second animation at 30 fps has 900 photographs with hundreds of pixels, so GIFs develop huge temporarily as a result of they retailer frame-by-frame raster photographs with a 256-color palette.
A easy bouncing animation may also be 3 MB. GIFs handiest make stronger 256 colours, so gradients glance banded. Transparency is both absolutely clear or absolutely opaque, so edges glance tough.
Lottie makes use of vectors. The browser reads values and attracts each and every body from them. A transferring circle isn’t 500 photographs, however one circle with converting coordinates. This assists in keeping information small and permits limitless scaling. The information are readable and simple to edit.
With vectors, high quality remains best at any measurement. Scaling a GIF makes it blocky as it makes use of raster photographs, whilst scaling a Lottie assists in keeping edges sharp, because of vectors. The similar small report on cellular may also be displayed with out adjustments on a 4K display screen. Record compression turns into issues much less since there’s not anything to compress past minimum textual content knowledge.

Lottie renders vector shapes with full-color gradients and alpha transparency by means of the participant. Delicate shadows render with easy fades from 0 p.c to 100% opacity.
Gradients keep easy as an alternative of becoming colour bands. Each colour and tint exports precisely as designed in After Results, whether or not this can be a cushy glow impact or a fancy colour transition.

Why Your WordPress Website online Wishes Lottie Recordsdata
Your WordPress website already works neatly, however guests be expecting greater than textual content and pictures. They would like visible cues that information them thru content material, and small touches that make surfing really feel responsive. Lottie information ship this with out the technical overhead.
Lottie information may also be custom designed to create hover results on carrier playing cards, animated clickable icons that may change undeniable buttons, or animations in testimonials. Those create micro-interactions that stay guests engaged. Those small moments upload as much as a website that feels thoughtfully crafted.
Finances issues too. Skilled animations normally run $200-500 according to customized piece. Lottie libraries supply hundreds of customizable choices without cost or at a fragment of that value. You get broadcast-quality movement graphics that will normally require an company finances.
The place To In finding Lottie Recordsdata
Talking of, whilst you’ll clearly create your personal Lottie information the use of Adobe After Results, it makes a lot more sensible sense to make use of readymade choices to be had available in the market, for it’s handy and, extra importantly, doesn’t require a lot technical abilities. Listed below are one of the crucial ubiquitous choices to be had to supply your Lottie information:
LottieFiles
The unique Lottie market hosts over 800,000 unfastened animations from hundreds of designers. You’ll want an account to obtain, however the library covers the whole lot from loading spinners to advanced personality animations. The integrated editor allows you to modify colours and velocity sooner than downloading.

It additionally provides Lottie Author, which helps you to construct them on your browser. The AI Movement Copilot generates keyframes from textual content descriptions. You’ll import SVGs and upload movement with out understanding After Results.
IconScout
With 700K+ Lottie information, IconScout bridges the space between unfastened and top class content material. The platform shines with its direct plugins for Figma and WordPress. You get 2,167 unfastened animations with out attribution necessities. Their converter gear deal with batch processing between codecs, making it sensible for companies managing a couple of shopper tasks.

Creattie
Creattie makes a speciality of consistency over amount. Each and every animation follows strict high quality requirements, and collections percentage the similar visible taste. The unfastened tier provides loads of designs with out requiring bank card main points. Their power lies in industry-specific packs.

Lordicon
Purely for animated icons, Lordicon delivers 37,200 choices throughout other types. The platform excels at UI components: checkboxes, toggles, navigation arrows, and social media icons. Unfastened customers get entry to 1,490 icons. The editor helps elementary colour adjustments and stroke changes.

How To Upload Lottie To WordPress
Now that we’ve got established why you wish to have Lottie animations on your website, let’s read about upload them in your WordPress website online. It doesn’t make stronger Lottie information natively, so listed below are a couple of approaches you’ll use:
The use of HTML Code
Including Lottie information with HTML has the least overhead however wishes extra technical ability.
The stairs are kind of the similar throughout suppliers, with some variation. With LottieFiles: pick out an animation, put it aside in your library, move to Embed, and duplicate the code from the “Embed HTML” tab.
In WordPress, upload a Customized HTML block in Gutenberg and paste the code. You’ll alternate measurement, velocity, and loop within the code attributes.
This technique works with any web page builder that accepts customized HTML.
The use of A Lottie Plugin
Lottie plugins upload Lottie options to WordPress by means of blocks or modules. There’s an legitimate LottieFiles plugin

and others like AM LottiePlayer and Lottie Participant.

Some Gutenberg add-on plugins additionally come with Lottie blocks. Spectra (previously Final Addons for Gutenberg) has a Lottie animation block amongst its 30+ blocks. Otter Blocks contains Lottie in its 20+ block library. Those paintings in the usual WordPress editor.
The method is the same throughout plugins: set up the plugin, then seek for “Lottie” within the block inserter. Some choices handiest can help you seek, add information, or paste URLs, and others do all.

Maximum plugins be offering elementary controls for background, measurement, triggers, colours, and extra.
Why Those Strategies Fall Brief
Alternatively, there are a number of downsides to either one of those strategies.
The place HTML Approach Falls Brief
As a result of Gutenberg does now not display the animation within the editor, you will have to preview the web page, tweak the settings, and repeat till it appears to be like proper. Additionally, animations are positioned in separate HTML blocks around the website, so managing them feels scattered, and updating one approach looking for the suitable block.
As well as, they depend on exterior products and services, so any downtime can wreck them . Because of this, even small adjustments like a background colour power you to edit uncooked HTML, which will increase the danger of mistakes from nontechnical staff individuals.
Many animations load the Lottie script a couple of instances in case you aren’t correctly optimizing it, which provides web page weight. In spite of everything, you’ll’t modify the scale, animations, and extra on mobiles with out requiring additional CSS.
Why The use of A Lottie Plugin Isn’t Superb Both
Whilst the plugin manner is extra usable than HTML blocks, it will usher in additional issues.
Maximum plugins lock just right options in the back of a paywall. That is an extra rate on best of what you already pay in case you use top class Lottie information. Plugins additionally decelerate WordPress via including useless code. They load additional information on each web page, even if animations aren’t provide.
The LottieFiles plugin has various fresh opinions bringing up crucial mistakes and admin efficiency problems — assessment in moderation in staging first.

The plugin so much lots of CSS code into WordPress admin spaces and pulls information from outdoor servers. Many of us say it crashed their whole website online once they put in it.
Extra importantly, regardless of which plugin you select, Gutenberg makes the use of animated graphics tricky. Easy adjustments turn into gradual and aggravating; the entire enjoy may really feel clunky and damaged.
That’s why having a Lottie module inside of a devoted web page builder is a some distance awesome choice. Web page developers deal with Lottie information like some other design component. Drop them in, modify the settings on display screen, and transfer on. The animation controls sit down proper subsequent in your typography and format choices, the place they belong.
You handiest pay for the web page builder, as an alternative of separate plugins that wreck your website or power you to leap between other interfaces. Divi 5 integrates Lottie as a firstclass module within the Visible Builder, so animation controls reside along your format and typography.
Divi 5 Makes Lottie Recordsdata (And WordPress Design) If truth be told Easy
Divi runs on hundreds of thousands of WordPress websites, now not as a theme, however as an entire design device. We constructed it for any person who wishes skilled web sites with out touching code.
You notice your web page precisely as guests will whilst you edit. Choose textual content, change colours, or rearrange whole sections, and watch the adjustments occur in an instant. There’s no back-and-forth between modifying monitors and preview modes.
The platform comes loaded with greater than 200 content material modules able to make use of. Those come with elementary textual content blocks and symbol galleries in addition to complex pricing tables, testimonials, and get in touch with paperwork.
Divi 5 Is Made For The Long run Of WordPress
After two and a part years of building, Divi 5 alpha arrived with totally new code. The unique framework couldn’t make stronger what we would have liked to construct subsequent, so each module and interplay were given rewritten.

This contemporary basis connects immediately with trendy WordPress functions. The payoff displays in every single place: responsive designs that paintings, layouts that snap in combination sooner, and styling choices the previous structure couldn’t deal with. We didn’t patch what existed. We began over to construct one thing extra considerable.
A Lot Has Modified In Divi 5
- The Lottie module so much JSON animation information and provides you with controls for playback velocity, triggers, and colour changes with none coding. Different new inclusions are Workforce Carousel, which creates sliders from any content material sort, and Icon Record, which creates customized bullet level designs.
- Design Variables can help you outline colours, fonts, and spacing values as soon as. Whilst you alternate them, they robotically replace throughout all of your website online.
- HSL colour controls calculate colour relationships mathematically, so all your palette shifts proportionally whilst you regulate base colours.
- The Responsive Editor shows how animations and settings behave on other display screen sizes, throughout hover states, and with sticky positioning.
- Flexbox changed the previous format device, and you’ll nest rows inside of different rows as many ranges deep as you wish to have.
- Integrated interactions deal with popups, mouse hover results, scroll-based animations, and toggle switches with out requiring further plugins.
- Thru visible controls, you’ll use complex CSS gadgets, together with clamp(), calc(), REM, and viewport widths, with out writing code.
- The brand new codebase deserted shortcodes for WordPress’s block layout and handiest so much the modules each and every particular web page makes use of.
- The interface contains panels that may be docked any place, tabbed settings group, breadcrumb navigation, keyboard shortcuts, and a depressing mode choice.
- Possibility Workforce Presets can help you save combos of typography, borders, shadows, and backgrounds to use throughout a couple of components.
- The Loop Builder shows dynamic content material from customized publish sorts, ACF fields, WooCommerce merchandise, and repeater fields.
Upload Lottie To Divi In 3 Steps
Including Lottie animations to Divi 5 takes 3 steps. That’s it. No code snippets to stick, no plugin compatibility problems to debug, no exterior scripts to load. The Visible Builder handles the whole lot internally, treating animations like some other module you’d drop onto a web page. You get the similar controls, the similar workflow, the similar rapid preview. Right here’s precisely set it up.
1. Permit JSON Uploads & Upload Your Lottie JSON
First, grasp your JSON report. Pass to LottieFiles, IconScout, or any supply coated previous. In finding an animation you prefer. Click on obtain and make a selection JSON layout, now not the Lottie Internet Participant choice.
Maximum websites mean you can pick out colours and sizes sooner than downloading. Do this now since you’ll’t alternate colours inside of Divi later.
WordPress blocks JSON information via default as it sees them as safety dangers. The repair takes two mins the use of a plugin like Record Add Sorts. However all the time consider to get your JSON information from relied on websites.

Now you’ll upload Lottie information. Open any web page in Divi’s Visible Builder. Click on the grey plus icon the place you wish to have motion. In finding the Lottie module within the listing and upload it in your web page.

Then, within the Lottie animations tab, click on on add and add your JSON report like every symbol. You’ll additionally pick out one you uploaded sooner than. The report will display up with a file icon. Choose it.
The Lottie report has now been added in your Divi 5 web page.
2. Modify Animation And Taste
As soon as your animation so much, the settings panel displays your regulate choices. Cause Animation comes to a decision when movement begins. On Load performs it immediately. View waits till the segment enters the viewport. Hover responds to mouse motion. Click on makes it tap-activated.
Scroll to Animate ties animation frames to scroll place, so customers regulate playback via scrolling. This ultimate one creates essentially the most attractive impact: scroll down and the animation strikes ahead, scroll up and reverses.
The Loop Animation toggle assists in keeping it operating endlessly. Flip it off for front animations that are meant to play as soon as and forestall.

Animation Pace defaults to one for traditional playback. Set it to 0.5 for part velocity or crank it to two for double velocity. Route runs it ahead or backward. Play Mode provides you with Customary or Soar, the place Soar performs ahead, then reverses again to the beginning.
The Design tab opens up Divi 5’s actual energy. You get the complex gadgets box as an alternative of elementary sliders. Sort 100vw to make your animation fill the display screen minus some padding.
Use clamp(25px, 3vw, 50px) so it scales easily between cellular and desktop. Those CSS purposes paintings immediately within the enter fields, so no customized code is wanted. You’ll additionally pull within the Quantity Design Variables you’ve created. This guarantees that your Lottie report makes use of constant values on every occasion wanted.

Plus, it remains attached to a device, so whilst you replace your Lottie measurement design variable, it robotically updates each Lottie report that references this Quantity variable.
Modify Settings For Other Display screen Sizes
Huge animations can paintings on desktops, however weigh down cellular customers. In Divi’s Visible Builder, open the cellular view the use of the responsive editor and reduce the animation measurement to no matter appears to be like easiest.

You’ll additionally use clamp() and identical gadgets to cut back the will for per-breakpoint changes.
Detailed animations on giant monitors are advanced to peer on small ones. Simplify the movement or gradual it from 1 to 0.5 on cellular. Hover results don’t paintings on touchscreens, so alternate the ones triggers to “View” so the animation begins when the segment scrolls into view.
Divi 5 allows you to use as much as seven responsive breakpoints as an alternative of simply 3. You’ll transfer between breakpoints to check animations and tweak them temporarily.

3. Create Presets For Reusing It Throughout The Web page
After putting in your Lottie animation precisely how you wish to have it, save the ones settings for reuse throughout your website. Divi 5 splits this into two preset sorts.
Possibility Workforce Presets can help you save particular taste teams. For instance, you could save the sizing values, or you’ll save no matter works on your format. You’ll put it aside throughout the preset icon subsequent to that environment staff.

Identify it one thing glaring like “Lottie Dimension”. Those presets paintings throughout any module sort. The precise spacing you created on your Lottie animation applies to pictures, textual content blocks, buttons, and the rest. When you wish to have the ones settings once more, click on the preset icon in any module and make a selection your stored preset.
Component Presets save the entire setup. The whole thing will get packaged along side the cause settings, animation velocity, loop standing, and the entire design houses, together with sizes.
Hit the preset icon on the best left of the settings panel to save lots of the entire Lottie module as an Component Preset. With one click on, you’ll drop that particular animation any place for your website.

Then, whilst you replace the preset, alternate the animation velocity from 1 to 0.5 within the preset, and each example of that animation throughout all of your website slows down robotically. You edit as soon as, and the alternate flows in every single place that preset seems.
Take a look at Lottie Animations In Divi 5 Lately
Including Lottie information shouldn’t require plugin playing or HTML wrestling. Divi 5 contains Lottie make stronger within the Visible Builder, sitting subsequent to Design Variables for constant colours, Flexbox layouts that paintings, and integrated interactions for hover results.
You add JSON information the similar approach you might upload any symbol. The Responsive Editor displays how your animations glance on telephones whilst you’re nonetheless modifying at the desktop.
When the whole lot connects thru one device as an alternative of 5 other plugins, your website remains rapid and your sanity remains intact.
The publish How To Upload Lottie Animations To WordPress Web sites gave the impression first on Sublime Issues Weblog.
WordPress Web Design