Media editor: build vs buy in the age of AI
Polotno

MOTION

Lottie + Polotno: a Lottie editor in your app, with MP4 and GIF export

Let users place Lottie animations in designs inside your app, combine them with text and images, and export MP4 or GIF. Live demo included.

Polotno plays Lottie animations as native elements in its embedded design editor. Users drop a .json or .lottie file onto the canvas, build a design around it with text, images and other animations, and export the result as MP4 or GIF. The design stays editable JSON in your database.

Try it below. The post opens with three animations from the LottieFiles free library. Move them, resize them, change the copy, open Pages to play the timeline, then export. Drop your own .lottie or Lottie JSON into Upload to add another one.

Where Lottie fits in a design editor

Lottie files are small, stay sharp at any size, and LottieFiles alone hosts a large free library of them. Most of them still end up as a looping icon in an app UI, because the tools around them are built for one animation at a time. A marketer who wants a sale badge animating next to a headline on an Instagram post has to bring in a motion designer or a video tool.

Polotno treats a Lottie file like any other layer. It sits on the page with your text, photos and shapes, and the export turns the whole page into a video or GIF. Your users never see a JSON file or a timeline editor they have to learn first.

What users can do with a Lottie element

  • Upload or drag in .lottie files and Lottie JSON. The editor recognizes them next to images, video and audio.
  • Position, resize and rotate the animation. It keeps its proportions by default.
  • Apply filters and enter or exit animations from the toolbar, the same controls images have.
  • Combine several animations on one page, with text and images layered above or below.
  • Play the page on the timeline. Each animation loops from the moment its element enters.
  • Export MP4 and GIF in the browser, or render them on your server from the saved design.

How export works

The editor saves every design as JSON, and a Lottie element in that JSON is just a reference to the animation file. The same JSON goes through three paths:

  • In the browser. The demo above encodes MP4 and GIF on the user's device, with no server involved.
  • On your server. polotno-node on your own infrastructure, or the hosted Cloud Render API, renders MP4 and GIF from the saved design, so you can batch-produce variants from templates.
  • As a still image. A PNG or JPEG export shows the animation's last frame.

The canvas plays Lottie with LottieFiles' own dotLottie player, so animations look the way they do on lottiefiles.com.

Code examples, including Lottie to MP4 in Node.js, are on the Lottie docs page.

What you can build

  • Social post and ad editors where users drop an animated sticker or badge onto a template and download an MP4 for Instagram, TikTok or LinkedIn.
  • Animated email and banner tools that export GIF for places video doesn't play.
  • Digital signage content with animated icons and offers looping on screen.
  • Template marketplaces whose templates ship with Lottie accents already placed, so users only change the copy.
  • Automated video generation that swaps text and animations from data and renders MP4 on your server.

FAQ

Which Lottie formats does Polotno support?

Lottie JSON and the .lottie (dotLottie) format, by URL or uploaded from the user's device.

Can users edit the colors or layers inside a Lottie animation?

No. A Lottie file is one element on the canvas. Users position, resize, filter and time it, but its internal layers stay as the author made them. To offer color variants, prepare them as separate Lottie files.

Does the exported video include the Lottie animation?

Yes. MP4 and GIF exports render every Lottie element frame by frame, along with the rest of the page.

Where do the Lottie files live?

Wherever you host them. The design JSON stores the animation's URL, so you can serve files from your own storage or a CDN. By default, files a user uploads are embedded in the design. Point uploads at your server to keep designs small; see upload behavior.

Do I need a LottieFiles account?

No. Polotno plays any valid Lottie file. LottieFiles is a good source of animations for templates, and many are free for commercial use.

Start building

Get a Polotno API key and add the editor to your app, then turn animations on and include the Upload section in the side panel. The animations and video docs cover the timeline and export options.

Skip the build, cut dev costs, launch faster

TRUSTED BY

100,000+

CREATORS

300+

BUSINESSES

ExpediaUnbounceLovePopPostGridPredis.ai