Let's Use it in our app 🛠

Select your favourite Lottie-file on the LottieFiles.com. I am choosing this by Ratamaca.


So just open 

import { Player } from "@lottiefiles/react-lottie-player";

<div class="container">
      <div class="app">
        Hola <span class="devs">Developers !</span>
      </div>
      <div>
        <Player
          autoplay
          loop
          src="https://assets2.lottiefiles.com/packages/lf20_Uk3Ei3.json"
          style={{ height: "400px", width: "400px" }}
        />
      </div>
</div>

Your preview would look like this with a bit of CSS (App.css). 



Just that 😛. Don't forget to check full-size preview or open in Sandbox. 

Discussion

Be the first one to comment!