Using the Lottie Android library, is it possibly to let the user interact with elements of the animation that is being played?
Like, have a button in the animation (not a native button) and react to clicks on it?
The json file is interpreted and outputs SVGs to the DOM. These can be assigned an eventhandler like any other element.
From Bodymovin:
name your layers in starting with a "." or a "#" and they will get exported with the name as a class or an id respectively.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With