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

Dynamic animation data #118

Closed
deshario9 opened this issue Dec 1, 2022 · 1 comment
Closed

Dynamic animation data #118

deshario9 opened this issue Dec 1, 2022 · 1 comment

Comments

@deshario9
Copy link

deshario9 commented Dec 1, 2022

I believe this lib use lottie-web on the background but some features seems missing.

Does this library support updateDocumentData or we need to handle it manually?

If it does, could you provide some guidelines on how to use it.

Thanks

@deshario9
Copy link
Author

It needs to be handled manually

const [lottie, setLottie] = useState<AnimationItem>()

const elements = lottie.renderer.elements.filter(Boolean)

<Player
  renderer='svg'
  lottieRef={setLottie}
/>

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

No branches or pull requests

1 participant