Lottie Block widget documentation
Lottie Block plays one Lottie JSON animation. Export an animation as JSON from your animation tool, add the widget to the page and tell it where the file lives.
Overview
The Xtra Lottie Block is a free Elementor Lottie widget. Point it at an animation JSON file, either an external URL or a file from your Media Library, and it renders the animation as crisp, resolution-independent vector graphics instead of a heavy video or GIF.
Choose when the animation plays: automatically, when it enters the viewport, while the pointer is over it, on click as a play and pause toggle, or scrubbed frame by frame as the visitor scrolls the page. Loop it forever or a set number of times, change the speed from 0.1x to 5x and play it backward.
The player is a simple box you can size, align and style: width in pixels, percent or viewport units, a background colour or gradient, padding, rounded corners, border, shadow, opacity and CSS filters. The Lottie player is bundled with the plugin and only loads on pages that use the widget.
You will find the widget in the Elementor panel under the Xtra widgets, or search for “Lottie Block”. It is part of the free Xtra Addons for Elementor plugin — see the Lottie Block widget page for live demos.
Quick start
- Drag the Lottie Block widget from the Xtra widgets into a column or container.
- Under Content → Lottie Animation, set Source to External URL and paste the address into Animation JSON URL, or choose Media Library (JSON) and pick a file under JSON File.
- Choose the Trigger: Autoplay, Enter Viewport, On Hover, On Click or Scroll-linked.
- Turn Loop on or off and set Loop Count (0 means infinite). Adjust Speed and Direction, and pick the Renderer (SVG, Canvas or HTML).
- Open Content → Layout to set the Width (px, % or vw) and the Alignment for each device.
- Open Style → Player to set Opacity, the Background, Padding, Border Radius, Border, Box Shadow and CSS Filters.
- Preview the page. Hover, click and scroll triggers only react to a real visitor, so check them on the front end.
Options reference
All 24 options of the Lottie Block widget, as they appear in the Elementor panel. Many options are responsive and can be set separately for desktop, tablet and mobile.
Content tab 11 options
Lottie Animation
| Option | Type | Values and notes |
|---|---|---|
| Source | Select | External URLMedia Library (JSON) |
| Animation JSON URL | Link | |
| JSON File | Image | |
| Trigger | Select | AutoplayEnter ViewportOn HoverOn ClickScroll-linked |
| Loop | On / off | |
| Loop Count (0 = infinite) | Number | |
| Speed | Slider | |
| Direction | Select | ForwardBackward |
| Renderer | Select | SVGCanvasHTML |
Layout
| Option | Type | Values and notes |
|---|---|---|
| Widthresponsive | Slider | |
| Alignmentresponsive | Choice | LeftCenterRight |
Style tab 13 options
Player
| Option | Type | Values and notes |
|---|---|---|
| Opacityresponsive | Slider | |
| Backgroundresponsive | Background | Classic color or image, gradient, video and slideshow backgrounds with position, size and effects. |
| Paddingresponsive | Dimensions | |
| Border Radiusresponsive | Dimensions | |
| Border Type | Select | DefaultNoneSolidDoubleDottedDashedGroove |
| Border Widthresponsive | Dimensions | |
| Border Color | Color | |
| Box Shadow | Box shadow | |
| Blur | Slider | |
| Brightness | Slider | |
| Contrast | Slider | |
| Saturation | Slider | |
| Hue | Slider |
Tips
- Make the first frame of the animation look good: hover and click modes show it until the visitor interacts.
- Set a Width so the animation has a predictable size. The player never grows wider than its container.
- Scroll-linked mode hides Loop, Loop Count, Speed and Direction, because the scroll position controls the playback.
- Choose the SVG renderer for sharp edges at any size and try Canvas if a very detailed animation feels slow.
Frequently asked questions
Is the Xtra Lottie Block widget free?
Yes. Lottie Block is included in the free Xtra Addons for Elementor plugin. You do not need Elementor Pro.
How do I add a Lottie animation in Elementor?
Add the Lottie Block widget, then under Content → Lottie Animation paste the animation JSON address into Animation JSON URL, or choose Media Library (JSON) and select a file. The animation plays on the page according to the Trigger you choose.
Can the animation play on hover or click instead of automatically?
Yes. Set Trigger to On Hover to play while the pointer is over the animation and rewind when it leaves, or to On Click to start it with a click and pause it with the next click. Enter Viewport starts it when about a third of the widget is visible.
Can I make a Lottie animation play only once?
Yes. Turn Loop off and the animation plays a single time, then stays on its last frame. With Loop on, set Loop Count to a number to repeat it that many times, or leave it at 0 to loop forever.
What does Scroll-linked do?
The animation is not played on a timer. Its progress follows where the widget sits in the viewport, moving forward as the visitor scrolls down and back as they scroll up. Loop, Speed and Direction are not used in this mode.
Why does my JSON file not appear in the Media Library?
WordPress does not accept JSON uploads on every site. If you cannot upload the file, set Source to External URL and paste the address of a file hosted elsewhere, or allow JSON uploads on your site first.
See the Lottie Block widget in action
Live demos, features and use cases are on the widget page.