wumperloo's post in Problems integrating animated SVG in WordPress was marked as the answer
For others that maybe struggle with the same problem I've found a solution by this method here:
The inline svg gets injected into the site with ajax...
Worked like charm. Here is the thread about it: