You mean .gif's like my avatar? If so. Image ready would be what you are looking for. Use photoshop to optimize them and Image ready to animate them.
Personally, I work on gifs in photoshop first. Using the same canvas, I put all the elements in different layers and then hit the magic Image ready button and in the frames window I select: make frames from layers. Good stuff.