Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation does not work in DotLottie Web #164

Open
PrinceGupta1999 opened this issue Apr 5, 2024 · 3 comments
Open

Animation does not work in DotLottie Web #164

PrinceGupta1999 opened this issue Apr 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@PrinceGupta1999
Copy link

PrinceGupta1999 commented Apr 5, 2024

Overview

Hi, I am trying to integrate this lottie animation (that I had exported from figma), https://app.lottiefiles.com/share/352a1071-0e63-44f2-9bd8-a6b94026600d, into my react app but it does not seem to work at all (it renders a blank canvas). Both the .json and .lottie formats do not seem to work.

Lottie .json: https://lottie.host/c47dca0a-2580-41b8-b2e9-75a9aeeb017b/Ja2z677E9b.json
.lottie: https://lottie.host/70cdd9e4-7e68-4166-9769-4ea6e4412fd6/GOZKlPuo9N.lottie
Codepen: https://codepen.io/tayyari/pen/wvZyXRZ

This is how it's supposed to look
Screenshot 2024-04-05 at 8 22 33 PM

Consuming repo

What repo were you working in when this issue occurred?
dotlottie-web

...

Labels

  • [] Add the Type: Bug label to this issue.
@PrinceGupta1999
Copy link
Author

PrinceGupta1999 commented Apr 5, 2024

Seems to work perfectly fine with the now deprecated @dotlottie/react-player. Will switch to that package for the time being

@theashraf
Copy link
Member

Thank you, @PrinceGupta1999, for reporting this issue. I believe it is related to ThorVG, the underlying Lottie renderer engine we use in dotLottie players.

I have reported the issue to the ThorVG team and linked it here for you to track its progress.

@theashraf theashraf added the bug Something isn't working label Apr 5, 2024
@hermet
Copy link
Member

hermet commented Apr 9, 2024

Hello, unfortunately, we cannot use this resource at the moment due to the lack of support for "layer effects." We plan to support it, but it will take a few months. Perhaps, you can find an alternative method to convert this resource without relying on layer effects. For example:

  • Using a blurred shadow effect images beneath the leaf shapes.
  • Replace the effect with the additional shapes with radial-gradient filling beneath the leaf shapes .

Otherwise, using a different player(engine).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants