<button id="container"></button>
#container {
  position: fixed;
  width: 100px;
  height: 100px;
}
import lottieWeb from 'https://cdn.skypack.dev/lottie-web';

var animation = lottieWeb.loadAnimation({
  container: document.getElementById('container'),
  path: 'https://maxst.icons8.com/vue-static/landings/animated-icons/icons/pause/pause.json',
  renderer: 'svg',
  loop: true,
  autoplay: true,
  name: "Demo Animation",
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.