---
title: "Add Lottie Animations to Video | Rendley SDK Docs"
description: "Render Lottie and Bodymovin animations from After Effects on the video canvas. Scalable motion graphics with full playback control and timeline sync."
url: https://docs.rendley.com/sdk/getting-started/clips/lottie/
---

# Lottie clips

The [LottieClip](https://docs.rendley.com/sdk/api-reference/classes/LottieClip.html) loads an Adobe After Effects composition (via Lottie/Bodymovin JSON) and renders it on the canvas. Besides playback, it exposes the composition’s layers, text, colors, and images so you can customize them at runtime.

## Create a Lottie clip

```
import { LottieClip } from "@rendley/sdk";

const lottieClip = new LottieClip({
  dataUrl: "/path/to/data.json",
  assetsUrl: "/path/to/assets", // optional, inferred from `dataUrl` if omitted
  startTime: 0,
});

await layer.addClip(lottieClip);
```

## Composition properties

To expose specific fields of the composition to your UI (for template-based editors, for example), pair the JSON with a `properties.json` file that maps friendly labels to the Lottie path of each element.

Example `properties.json` file

```
[
  {
    "type": "text",
    "label": "Title",
    "name": "Title 01/Title Animation 01/Text 01/Text 01"
  },
  {
    "type": "text",
    "label": "Subtitle",
    "name": "Title 01/Title Animation 01/Text 02/Text 02"
  }
]
```

```
const lottieClip = new LottieClip({
  dataUrl: "/path/to/data.json",
  propertiesUrl: "/path/to/properties.json",
  startTime: 0,
});

lottieClip.setProperty("propertyName", "propertyValue");
const properties = lottieClip.getProperties();
const value = lottieClip.getProperty("propertyName");
```

## Replace images

Lottie clip handles all properties via get/setProperty, except images. In case you need to change an image you can use this (This is not officially supported):

```
lottieClip.replaceImage("Title 01/Image 01", "https://example.com/image.png");
```

## Playback speed and wrap mode

```
import { WrapModeEnum } from "@rendley/sdk";

lottieClip.setPlaybackSpeed(2);
lottieClip.setWrapMode(WrapModeEnum.REPEAT); // CLAMP | REPEAT | PING_PONG | EMPTY
```

## Hot-Swap the animation data

If you need to replace the Lottie JSON without recreating the clip:

```
lottieClip.replaceAnimationData(newJson);
```

Info

`replaceAnimationData` does not serialize. If you need to persist a reference to the source JSON, use [`setCustomData`](https://docs.rendley.com/sdk/getting-started/library/#set-custom-metadata-for-assets) on the clip.

## What to read next

- **[Custom clips](https://docs.rendley.com/sdk/getting-started/clips/custom/)** extend CustomClip to render anything you like.
- API reference: [`LottieClip`](https://docs.rendley.com/sdk/api-reference/classes/LottieClip.html).

[Previous pageGIF clips](https://docs.rendley.com/sdk/getting-started/clips/gif/) [Next pageAdjustment clips](https://docs.rendley.com/sdk/getting-started/clips/adjustment/)
