fitzhavey/lottie-player-vue

How to reference Lottie JSON?

Closed this issue · 3 comments

I was wondering if it's possible to reference the Lottie .json file from the Lottie website?

eg:

<lottie-player src="https://assets10.lottiefiles.com/packages/lf20_UDstUT.json" />

EDIT:

I see it is actually working, but I get an error in the console that it expects an object, but received a string.

I'm getting the same error. Did you find a fix?

@Shaif821

It appears that the lottie player still works when you give it a URL - it's just an error that appears in the console.

Removed the dependency on src being a string in 93f775d

This console error should no longer occur in version 0.0.13 or higher.