I want to second OP’s idea. It would be easy to import and export gifs. To import them, each frame can be added as a different layer. To export you can indicate the frames by using the layers going from bottom to top and you can indicate each frame’s speed by using the format ‘Layer1Name (100 ms), Layer2Name 500 ms` etc etc.