title: Html preloader with gif from URL
body: <p>I have this preloader code:</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;div class="loading"&gt;
     &lt;img src="https://media.giphy.com/media/jFIgJGFHHFxde/giphy.gif"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can I bring it to the center and hide after loading?</p>