A Lottie file is a vector animation exported as JSON. It stays sharp at any size and weighs a fraction of the equivalent GIF or video, which is why so much of the illustration and micro-interaction work you see on the web now ships in that format.
The Premium Lottie Animations widget takes one of those files, from LottieFiles or from your own media library, and renders it inside an Elementor layout with playback settings attached: how many times it repeats, how fast it runs, whether it waits before starting, and what starts it in the first place. Every option below is from Premium Addons 4.11.101.
Requirements:
- Premium Addons for Elementor installed and activated. Lottie Animations is part of the free plugin, so no PRO license is needed for this widget.
- The widget enabled in the Premium Addons dashboard, otherwise it will not appear in the Elementor editor. Check this article to know how to do that.
- Premium Addons works only with Elementor Page Builder plugin, so you will need that installed and activated as well.
The Animation File
- File Source: External URL loads the animation from an address, usually a LottieFiles link. Media File loads it from your own WordPress media library.
- Animation JSON URL: where the file lives, when the source is External URL. Dynamic tags work here, so the address can come from a custom field.
- Upload JSON File: the media picker, when the source is Media File. It accepts
.jsonfiles. Uploading the animation to your library once means it is served from your own domain instead of a third-party one.
Getting Your JSON URL From LottieFiles
- Go and open LottieFiles.com.
- Select the Lottie animated file that you want to use.
- Once you select it, open the file then copy the link located at Lottie Animation URL.
- Go back to the Elementor editor and paste the copied URL into the Animation JSON URL field.
Playback
- Loop: on by default. Turn it off and the animation runs once, then stops on its last frame. With Reverse also on it starts from the last frame and stops on the first.
- Times: how many times the animation plays before it pauses. Leave it empty and it repeats forever. It appears when Loop is on, and it is hidden when Trigger is set to Scroll.
- Reverse: plays the animation backwards.
- Animation Speed: a multiplier between 0.1 and 3, with 1 as normal speed. 0.5 halves the pace, 2 doubles it.
- Animation Delay (sec): holds the animation on its first frame, or on its last frame when Reverse is on, for up to 5 seconds before it starts. Useful when several animations on one screen would otherwise all fire at the same moment.
Trigger
Trigger decides what starts the animation, and three of its five options bring extra settings with them.
- None: no trigger. The animation plays on its own as soon as the widget reaches the screen, since animations are only loaded once they scroll into view. This is what you get when you leave Trigger alone.
- Viewport: playback is tied to the scroll position and runs as the widget crosses the screen.
- Hover: the animation stays paused until the cursor is over it.
- Scroll: the animation advances and rewinds with the page scroll, like a timeline you scrub.
- Click: the animation stays paused until the visitor clicks it. Clicking again pauses it.
Hover adds one more control:
- Reset on Mouse Leave: when the cursor leaves, the animation runs backwards to its first frame instead of freezing where it stopped.
Scroll and Viewport add these:
- Speed: how far the animation advances per unit of scroll, from 0 to 10, with 4 as the default. Scroll only.
- Viewport: two handles, Bottom and Top, marking the part of the screen the animation plays across. The defaults, 0% and 100%, spread the animation over a full pass of the viewport. Narrow the range and it finishes sooner.
Turning Reverse on hides all three of these controls.
Size, Rotation and Alignment
- Size: the width of the rendered animation, in px, em, % or vw. 200px by default, and the px slider runs up to 800.
- Rotate (degrees): turns the animation between -180 and 180 degrees.
- Alignment: puts the animation Left, Center or Right inside its container. Center by default.
All three take separate values per device, so an animation can be 200px on desktop and 120px on mobile.
Link
- Link: turns the whole animation into a click target by laying a transparent link over it, so a click anywhere on the animation follows the link.
- Link Type: URL to type an address yourself, or Existing Page to pick one of your published posts and pages by title.
- Link: the address, when Link Type is URL. The options for opening in a new tab and adding nofollow sit behind the gear icon, and dynamic tags are supported.
- Existing Page: a search field over your posts and pages, when Link Type is Existing Page.
Render As and Mouse Tilt
- Render As: SVG or Canvas. SVG is the default and keeps the animation crisp at any size. Canvas draws to a bitmap instead. Switch to Canvas if a page carrying several animations feels heavy.
- Enable Mouse Tilt: the animation tips in 3D following the cursor.
- Reverse: flips the direction of the tilt.
Styling the Lottie Animations Widget
The Style tab holds one section, Animation. Its first three options are split across Normal and Hover states.
- Background Color: the color behind the animation.
- Opacity: how transparent the animation is.
- CSS Filters: Blur, Brightness, Contrast, Saturation and Hue, applied to the animation.
Below the state tabs, the rest of the section applies to both states.
- Border Type: the border style. Color and Width sit beside it in the same group, and Width takes a value per side.
- Border Radius: rounds the corners, with the four corners linked or set separately.
- Advanced Border Radius: takes a full CSS
border-radiusvalue instead, for shapes the four-corner control cannot make. Get the value from here. - Padding: space between the border and the animation, in px, em or %.
Conclusion
Most of the work with this widget is in the Trigger setting. A logo animation usually wants None so it plays on load, a decorative illustration halfway down a page reads better on Viewport, and an icon inside a card is a good fit for Hover. Once the trigger is right, Loop, Times and Animation Speed are what you adjust to get the pace you want.
Come & Join the Community
Feel free to join our Facebook group and subscribe to our YouTube channel to keep up with our newest features, improvements, and helpful video tutorials.