How to use lottie animations on the web

  1. Get JSON format of animation
  2. Add Bodymovin library to the HTML page
  3. Load the animation
  4. Set the animation trigger

It is using in script tag.

<script src=”https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js”></script>

Leave a comment

Your email address will not be published. Required fields are marked *