GitHub sanitizes SVG animations by removing e.g. embedded JS code but SVG animated with CSS is supported in Markdown files. See for example [1] which contains [2].
[1] https://github.com/nbedos/termtosvg/blob/develop/README.md
[2] https://github.com/nbedos/termtosvg/blob/develop/docs/exampl...