giuseppelt / astro-lottie

Use Lottie animations within your Astro website
MIT License
38 stars 7 forks source link

Support for dotlottie files? #4

Open dhruv-m1 opened 1 year ago

dhruv-m1 commented 1 year ago

The newer dotlottie format does not seem to work with the integration currently.

giuseppelt commented 1 year ago

Isn't the gotlottie file format still in experimental stage?

dhruv-m1 commented 1 year ago

Hi @giuseppelt - Sorry for the delay in responding.

It is no longer in experimental stage (as far as the web is concerned), and they have even been advocating for people to use it now. A free utility to convert from JSON is even being provided.

The main advantage of the format is that file sizes are way smaller (see screenshot below):

They still tag the optimized JSON as 'recommended' since dotlottie player libraries are still in beta for iOS. However, libraries for the web and android are now stable.

(Source)

It would be great if your Astro integration could also support the format.

giuseppelt commented 1 year ago

The format is still not stable, lots of missing feature and many stuff yet pending. On top, there's no documentation on how the format works really, as only a small brief is mentioned in the docs.

Unless, there's a strong demand for this, better wait til more settles. I'm leaving this open, to track interest.

And there's always a workaround, you can take and use the normal json file, from the Lottie file.

KingPr0o7 commented 3 months ago

@giuseppelt I would love for you to look into this again!

It's been more than a year since this opened and thus the dotlottie file format. Though I doubt documentation around the format even exists. Nonetheless, would love to save a few more KB!