lottie site:github.com code example
Example 1: lottie animation github
dependencies {
implementation 'com.airbnb.android:lottie:$lottieVersion'
}
Example 2: github lottie
lottie.loadAnimation({
container: element, // the dom element that will contain the animation
renderer: 'svg',
loop: true,
autoplay: true,
path: 'data.json' // the path to the animation json
});