How to Add Lottie, Rive and Video Animation in Elementor
By the Charmotion team · Updated · How we write guides

To add a Lottie animation in Elementor, drag the Pro Lottie widget onto the page and upload a JSON file or paste its URL. Without Pro, paste the dotLottie web component into the free HTML widget. Rive has no Elementor widget, so it also goes in the HTML widget, and looping video uses the Video widget.
Key takeaways
- The Lottie widget arrived in Elementor Pro 2.10 and takes a JSON file from the Media Library or an external URL.
- Its triggers are Viewport, On Click, On Hover, Scroll and None, with SVG or Canvas rendering and Lazy Load.
- The free HTML widget runs HTML, CSS and JavaScript, so it can host dotLottie and Rive players; only admins can use it by default.
- The free Video widget's Self Hosted source has Autoplay, Mute, Loop, Poster and Preload settings.
- Elementor disables its motion effects for visitors who turn on reduced motion; custom embeds must do that themselves.
Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.
What are the ways to add animation in Elementor?
| Need | Elementor tool | Plan |
|---|---|---|
| Fade or slide sections in on scroll | Advanced tab, Motion Effects, Entrance Animation | Free |
| Parallax, mouse tracking effects | Motion Effects: Scrolling Effects, Mouse Effects | Pro |
| Vector illustration or icon animation | Lottie widget | Pro |
| Lottie without Pro | HTML widget with the dotLottie player | Free |
| Interactive character (Rive) | HTML widget with the Rive runtime | Free |
| Looping clip | Video widget, Self Hosted source | Free |
| Character with a transparent background | HTML widget with a WebM and MOV pair | Free |
Third-party addon packs also add Lottie and animation widgets. They can be convenient, but each one adds its own scripts and update cycle, so check when a plugin was last updated before installing it on a production site.
How do I use the Elementor Lottie widget?
- Drag the Lottie widget into a container.
- Under Source, choose Media File to upload a JSON file, or External URL to paste a link. LottieFiles also documents copying an animation's URL from its site into the widget.
- Pick a Trigger: Viewport (plays when a set share of it is visible), On Click, On Hover (with a Hover Area and an On Hover Out behavior), Scroll (scrubs with page scroll) or None.
- Set Loop, Play Speed, Reverse, and Start Point and End Point to play only part of the file.
- Choose the Renderer. Elementor says SVG gives more control and Canvas is usually faster.
- Turn on Lazy Load for animations below the fold, and add a Link if the animation should be clickable.
Elementor's own help page warns that Lottie JSON files can contain malicious code, so load them only from sources you trust. The widget documentation describes JSON files only; for a compressed .lottie file, use the player in the next section.
Can I add Lottie in Elementor without Pro?
Yes. The free HTML widget accepts "HTML, CSS, Shortcodes, and also include JS scripts," so the official dotLottie web component works in it:
<dotlottie-wc src="https://example.com/animations/hero.lottie" autoplay loop
style="width: 320px; height: 320px"></dotlottie-wc>
<script type="module"
src="https://unpkg.com/@lottiefiles/dotlottie-wc@0.12.2/dist/dotlottie-wc.js"></script>
The component plays both .lottie and JSON files. Elementor restricts the HTML widget to administrators by default, because pasted code can contain malware, and the Role Manager can change that. If you add the same animation on many pages, load the script once in your theme or a code snippet plugin instead of in every widget.
How do I add a Rive animation in Elementor?
Elementor has no Rive widget, so paste Rive's web runtime into an HTML widget. Give the canvas a fixed size, or it can collapse in some layouts:
<canvas id="hero-rive" width="400" height="400"
style="width: 400px; max-width: 100%; height: auto"></canvas>
<script src="https://unpkg.com/@rive-app/canvas@2.51.0"></script>
<script>
const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
const r = new rive.Rive({
src: "/wp-content/uploads/rive/mascot.riv",
canvas: document.getElementById("hero-rive"),
stateMachines: "State Machine 1",
autoplay: !reduce,
autoBind: true,
onLoad: () => r.resizeDrawingSurfaceToCanvas(),
});
</script>
The catch is the file itself. WordPress only accepts uploads whose type is on its allowed list (controlled by the upload_mimes filter), and .riv is not on it. The simplest fix is to upload the file with SFTP or your host's file manager into a folder under wp-content/uploads, or to host it on a CDN you control, then use that URL as src. Rive recommends autoBind: true so files built with data binding pick up their default view model.
Check the result in Preview or on the published page, and open the browser console if nothing appears: a wrong file path or state machine name is the usual cause.
How do I add a looping background or mascot video in Elementor?
Use the free Video widget with the Self Hosted source:
- Pick the MP4 from the Media Library, or turn on External URL.
- Turn on Autoplay, Mute and Loop. Browsers generally block autoplay with sound, so do not skip Mute.
- Turn off Player Controls for a decorative loop.
- Set a Poster image and choose Preload: Metadata for most cases, None for clips far down the page.
The widget takes one file, so it cannot serve the two-source setup that transparent video needs (WebM with alpha for Chrome, Edge and Firefox, HEVC MOV with alpha for Safari). For a character floating over a colored section, use an HTML widget with a <video> tag and both sources, as shown in transparent video on a website.
Should I use Lottie, Rive or video in Elementor?
- Lottie for vector illustrations and icons that play through or scrub with scroll. The Pro widget's Scroll trigger makes this the easiest option in Elementor.
- Rive for a character or logo that changes state or reacts to the pointer, because the state machine lives inside the .riv file. See Rive vs Lottie.
- Video for anything painterly, 3D-rendered or photographic, and whenever you want zero JavaScript.
Disclosure: Charmotion is our product. We list it where it fits and say where other tools are better; every other fact links to its source.
If you have a mascot image and want it moving in Elementor, Charmotion animates one PNG, JPEG or WebP of a front-facing character and delivers a .riv file with web code (which drops into the HTML widget above) plus MP4, transparent WebM and MOV, and GIF exports. It does not produce Lottie files, so if your site is standardized on the Lottie widget, a LottieFiles animation or a Lottie designer is the better fit.
How do I keep Elementor animations from slowing the page?
- Lazy load below-the-fold Lottie widgets and set video Preload to None or Metadata.
- One runtime per page. Two different Lottie addons, or the Lottie widget plus an addon, can load two players.
- Size files to their display size. A 400 px animation does not need a 1080 px video.
- Respect reduced motion. Elementor disables its motion effects for visitors with reduced motion turned on; custom HTML embeds need the
prefers-reduced-motioncheck shown in the Rive snippet. - Avoid animating the largest element above the fold if Largest Contentful Paint matters; give it a poster. More in hero animation and Core Web Vitals.
Frequently asked questions
Is the Elementor Lottie widget free?
No. Elementor introduced it with Elementor Pro, and its help page lists it for the paid plans. In the free version, paste the dotLottie web component into the HTML widget, or use a third-party addon that provides a Lottie widget.
Can I upload a .lottie file to the Elementor Lottie widget?
Elementor documents the widget as rendering JSON files. If you only have a .lottie file, either export JSON from LottieFiles or play the .lottie file with the dotLottie web component in an HTML widget.
Why does my Lottie animation not play on hover in Elementor?
Check the Hover Area setting: it can be the animation itself, its column, section or container. If the area is the animation and it is small or covered by another element, the pointer never reaches it.
Will a Rive file in Elementor work on mobile?
Yes. The Rive web runtime runs in mobile browsers. Give the canvas a fixed aspect ratio, keep the .riv small and test touch interactions, since hover effects do not exist on touch screens.
Quick answers from this guide
Sources
- Lottie widget, Elementor
- Introducing multi-step forms and Lottie animations (Elementor Pro 2.10), Elementor
- From LottieFiles straight to your Elementor website, LottieFiles
- HTML widget, Elementor
- Video widget, Elementor
- Motion effects, Elementor
- dotlottie-web: players for web, React, Vue, Svelte and web components, LottieFiles on GitHub
- Web (JS) runtime, Rive
- upload_mimes hook, WordPress Developer Resources
- prefers-reduced-motion, MDN Web Docs