LottieFiles / lottie-react

lottie web player as a react component
https://lottiefiles.com
MIT License
717 stars 80 forks source link

Dynamic animation data #118

Closed deshario9 closed 1 year ago

deshario9 commented 1 year ago

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 commented 1 year ago

It needs to be handled manually

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

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

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