Lottie & bodymovin

In this example below you will see how to do a Lottie & bodymovin with some HTML / CSS and Javascript

This awesome code was written by 22nds, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 22nds ©
  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>Lottie & bodymovin</title>
      <link rel="stylesheet" href="css/style.css">



<div id="bm"> </div>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/bodymovin/4.10.2/bodymovin.min.js'></script>


    <script  src="js/index.js"></script>



/*Downloaded from https://www.codeseek.co/22nds/lottie-andamp-bodymovin-xLyEoy */
body {
  background-color: #000;
  width: 100%;
  height: 100%;
  margin: 0;
#bm {
  width: 100%;
  height: 100%;

/*Downloaded from https://www.codeseek.co/22nds/lottie-andamp-bodymovin-xLyEoy */
// Animation source: https://www.lottiefiles.com/466-stopwatch-via-sketch2ae

var draw = bodymovin.loadAnimation({
  container: document.getElementById('bm'),
  renderer: 'svg',
  loop: true,
  autoplay: true,
  path: 'https://cors-anywhere.herokuapp.com/https://www.lottiefiles.com/storage/datafiles/i0DrGl1AyhF4rvhqpBUbia6zUEekgKoxRociBzZy/stopwatch.json'