title: ImageMagick: GIF animation with transparent background
body: <p>This is my first post here and I will try to be concise and accurate in my explanation.</p>
  
  <p>I am trying to create a very simple GIF animation for my web site, I am completely new in this world since I started playing around with ImageMagick yesterday, and I am having serious problems to get the result I want. The animation consists of only 2 frames that swap infinitely. Here you can see the <a href="https://www.dropbox.com/s/ux7z5m1z7z3y7qt/logo_anim_basic.gif?dl=0" rel="nofollow">basic animation</a>.</p>
  
  <p>As you can see, the animation consists of a couple of characters, that change from frame to frame, on a <strong>transparent background</strong>. No problem so far. The problem is that <em>I want the transition from one frame to the other to be <strong>as smooth as possible</em></strong>, not only a basic switch. I found the way to define this kind of transition on the documentation. However, <strong>this command is unable to create the animation</strong> I need because of the background transparency since <strong>it breaks the transparency during the transition</strong> and it messes it up a lot! If I change the background color to, let's say, black everything works as expected... Here you can find the animation on a <a href="https://www.dropbox.com/s/iywjdbudx55jkrl/logo_anim_11.gif?dl=0" rel="nofollow">transparent background</a>.</p>
  
  <p>These are the commands I used:</p>
  
  <pre><code>convert logo_1.png logo_3.png -morph 15 -set delay 10   \( -clone 0 -set delay 240 \) -swap 0 +delete \
        \( +clone   -set delay 240 \) +swap   +delete \
        -duplicate 1,-2-1  logo_anim_9.gif
  convert -alpha Set logo_1.png logo_3.png -morph 15 -set delay 10   \( -clone 0 -set delay 240 \) -swap 0 +delete \
        \( +clone   -set delay 240 \) +swap   +delete \
        -duplicate 1,-2-1  logo_anim_11.gif
  </code></pre>
  
  <p>However, the <code>-alpha Set</code> did nothin regarding the transparent background...</p>
  
  <p>I will be very grateful if someone can give me a hand with this since I'm very unexperienced with the use of this software and I would like to get the animation with the soft transition with a transparent background.</p>
  
  <p>Many thanks in advance.</p>
  
  <p>Best regards</p>