LottieFiles / lottie-player

Lottie viewer/player as an easy to use web component! https://lottiefiles.com/web-player
MIT License
1.54k stars 175 forks source link

lottie-player.js or jlottie-player.js? #109

Closed alolalo closed 2 years ago

alolalo commented 2 years ago

Hello fine animation people at LottieFiles!

I was wondering two things;

If so and it should point to jlottie, could you please update this doc and make sure all code generators do so too, or it will simply spread an old standard.

Thank you

samuelOsborne commented 2 years ago

Hi @alolalo !

I think there seems to be some confusion. The current repository we're on with this issue is lottie-player, the cdn is as such:

<script src="https://unpkg.com/@lottiefiles/lottie-player@0.4.0/dist/lottie-player.js"></script>

And jLottie's CDN is :

<script src="https://unpkg.com/@lottiefiles/jlottie@latest/dist/jlottie.min.js" type="module"></script>

lottie-web and jLottie are two different Lottie players, lottie-web being your general-purpose lottie player but bigger in size. And jLottie targeting specifically micro-animations and comes in a smaller package size.

The lottie-player does not support playing dotLottie animations, nor does jLottie, you can find the dotLottie player here:

https://github.com/dotlottie/player-component

Hope this helps, let me know if you have any more questions!

Cheers!

alolalo commented 2 years ago

This explains a lot, thank you! I had the "illusion" that they are different versions, but didn't know they are just stand-alone lottie implementations. I'm writing this is up for myself and a blogpost too so thanks for clearing this out for others in advance.

samuelOsborne commented 2 years ago

No problem @alolalo. Please do share with us your blog post when it is finished. If you have any more questions about the players or Lottie as a whole, It'll be easier to talk over on our Discord

You can also email me at: sam@lottiefiles.com

Have a great day :-)