I've done this but I've still never figured out the magic sauce to get a gif with a good balance of file size and quality. And gifs seem to have some kind of trick I don't understand with framerate cause sometimes a 30fps gif I made will play in slow motion, and at first I think it's that it's just slowly loading, but even after it's fully loaded it still plays slowed down.
gifs just constantly remind me that they're not made for what we used them for these days