title: ImageMagick and transparent background for animated gif
body: <p>I have an animation as a batch of .png files (100 files). The background is transparent in the source .png files. I want to convert them into a single animated gif. I have tried this command:</p>
  
  <pre><code>convert -delay 0 -loop 0 -alpha set *.png ani.gif
  </code></pre>
  
  <p>But the result is the following (green is the HTML page background):</p>
  
  <p><img src="https://i.stack.imgur.com/swkeC.png" alt="enter image description here"></p>
  
  <p>How should I remove the previous frames from an every following one?</p>