vue-inline-svg icon indicating copy to clipboard operation
vue-inline-svg copied to clipboard

Animation of SVG not working

Open L2k13 opened this issue 3 years ago • 0 comments

hey,

I'm using a svg generated with svgator. The animation is in a script tag in the SVG, but the animation doesn't start.

When I put the animation in a function and call it with the @loaded prop everything works fine.

So the SVG seems fine and so does the animation.

Now I'm looking for a solution how to start the animation directly from the SVG, since the SVG is maintained in a CMS and thus I can't manually insert the animation function into the vue component and its @loaded function

Does it only work with CSS animations or does anyone have an idea?

What I have already tried is:

  • read the script tag with innerhtml and write it into the body via append child = no animation
  • read script tag with innerhtml and trigger the read function in the @loaded with function / eval = error with unexpected token '&'

L2k13 avatar Aug 22 '22 13:08 L2k13