I would like to optimize as much as possible a gif that has animated opacity. I tried it in adobe photoshop, but it doesn't export with the opacity animation. Can anyone help me?
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
Traditionally it's the pixels in a gif which are animated... and transparency adjusts to match those repositioned pixels.
GIF transparency is also 1-bit, meaning it's either on or off. It is not possible to "fade" transparency when using the GIF format.
So, if you are trying to achieve some sort of "opacity fade animation", that's not possible with a GIF. Again, opacity is either on or off there are no mid-values to animate.
As Scott said above GIFs only support 1-bit transparency so you can't animate it smoothly.
I don't know where you plan on using the GIF, but if the background doesn't change you can fake it by adding a piece of the background to the bottom layer in Photoshop so your smooth opacity transitions will look like it's smoothly fading to the background in the resulting GIF.