Skip to content

Conversation

@bricehabib
Copy link

Hi,

I added a props called "getDuration" that will return the totalFrame of the animation onLoad of the Lottie.
I used to use a custom version of your library but now, because I want to publish mine on npm, Iit would be awesome if you add this functionality to your package :D

Thanks in advance and do not hesitate to contact me if needed :)

See you, and thanks again for your library ;)

@mifi
Copy link
Owner

mifi commented Apr 3, 2022

Hi and thanks for your PR!

I think a better solution might actually be to expose the lottie ref, then users can get whatever data they need from the lottie object. See #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants