Isn't it awkward to have to set up the expected GIF and Dot files?
It does require that you become familiar with the syntax of Dot files. But it's pretty simple.
Could this same technique be used with SVG files instead of GIFs?
Yes.