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

add get Duration method #66

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bricebelkadi
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.

None yet

2 participants