You create the different images of the animation, and then you compile the seperate files to one gif file. You can use a program called Unfreez for that, or maybe your graphics program supports it. If you want to use Unfreez, remember you have to save the seperate images already as gif files, otherwise it won't work, you can also set a delay and loop with the program, really handy thingy really.