Skip to content
#

bodymovin

Here are 51 public repositories matching this topic...

LittleHamster
LittleHamster commented Apr 28, 2020

in the documentation it says we can initialize lottie file in js:

const player = document.querySelector("lottie-player");
player.load("https://assets3.lottiefiles.com/packages/lf20_UJNc2t.json");

but when if I have multiple lottie files?

var player = $('.lottie-icon');
player.load(...);
<lottie-player class="lottie-icon" background="transparent"  speed
SteveKChiu
SteveKChiu commented Jul 12, 2019

If I assign an url (not string) to the source property, the LottieAnimation fail to play, for example:

LottieAnimation {
    source: Qt.resolvedUrl("aaa/a.json")
}

It seems the source can accept javascript object as well, but url is also an 'object' type in qml, the code even have the comment:

if (typeof source === "object") { // TODO what about QUrl, I think it is tre

Improve this page

Add a description, image, and links to the bodymovin topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the bodymovin topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.