2023-05-02T04:11:09Z
Author
Made with
About the code
Glow Loading CSS Animation
Compatible browsers
Chrome, Firefox, Safari, Opera, Edge
Choose an animation, either one of your own or you can select one from the wide range of free animations on . Make sure you have your animation in Lottie format (.json).
npm install @lottiefiles/react-lottie-player
Read DocsImport package in your code
import { Player} from '@lottiefiles/react-lottie-player'
Add the element Player and set the src prop to a URL pointing to a valid Lottie JSON.
<Player
autoplay
loop
src="https://assets1.lottiefiles.com/packages/lf20_gc88Qf.json"
style={{ height: '300px', width: '300px' }}
/>
You can also download the lottie json and add into your project. only change the src prop value to the path of json file
More Integrate options are available at lottiefiles.com/integrations