How GIF background removal works
A GIF animation is a sequence of frames, and many of them only store the part that changed since the previous frame. We first reconstruct every frame exactly as a viewer would see it — honouring each frame's disposal method — and then run background removal on the complete picture. That avoids the flicker and ghosting you get when only partial frames are processed.
After the AI produces a transparent cutout for each frame, the frames are converted back into GIF colours, with one colour reserved for transparency, and re-assembled with the original delays and loop settings.
