title: Put lottie animation in background
body: <p>I can't figure out how I can use a Lottie animation in the background and put text over it.</p>
  <p>I am using Svelte in case it matters.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section&gt;
  
    &lt;div class="animation"&gt;
  
      &lt;script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"&gt;&lt;/script&gt;
      &lt;lottie-player src="static\animation.json" background="transparent" speed="1" style="width: 1000px; height: 1000px;" loop autoplay&gt;&lt;/lottie-player&gt;
  
      &lt;h1&gt;
        Title
      &lt;/h1&gt;
  
      &lt;h2&gt;
        Text
      &lt;/h2&gt;
    &lt;/div&gt;
  &lt;/section&gt;
  
  &lt;style&gt;
    section {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      flex: 1;
    }
    
    h1 {
      width: 100%;
    }
    
    h2 {
      text-align: center;
    }
  &lt;/style&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I tried using z-index but it didn't change anything.</p>