Skip to main content

Lottie Element API

Lottie element has all common element properties + some specific properties.

Methods

setTextContent(content)

  • content string

This method sets the content of the Lottie text layer.

Action example
lottieElement.setTextContent("_name", "John Doe");

setImageSource(url)

  • url string

This method sets the source of the Lottie image layer.

Action example
lottieElement.setImageSource("_image", "file:///C:/logos-repository/logo.png");