Usage
Demonstrates how to embed the Lottie-React Player in your web page.
Add the element
Player
and set the src
property to a URL pointing to a valid Lottie JSON file. For example:<Player
autoplay
loop
src="https://assets3.lottiefiles.com/packages/lf20_UJNc2t.json"
style={{ height: '300px', width: '300px' }}
>
<Controls visible={true} buttons={['play', 'repeat', 'frame', 'debug']} />
</Player>
The following example shows how to play an animation using the Lottie-React component.
Last modified 1yr ago