Forum Discussion
Change an Illustrator SVG inside Storyline with GSAP
if you use firefox as debugger you can see what happens with the image svg -> #shadow-root
and the inner part of the svg is searchable with javascript
it would be easy to search, if storyline would not modify the id (and class name) from the inner of the svg file
so I have search for an alternative way to find the svg part with javascript
after export from Ilustrator I have injected a searchable wrapper
<g data-...=">
</g>
and with
document.querySelectorAll('[data-...]');
you get
search - tested with firefox and chrome
- MathNotermans-92 years agoCommunity Member
You lost me there Jurgen ? What are you saying ? The imported SVG is directly editable ? Although its a SVGImage ? Its just Chrome that doesnot show it completely but in Firefox you can debug it better and see the path ?
And indeed... in Firefox the path data is available...wow... thanks Jurgen... have to redo my function so i can call inner elements of a imported Illustrator SVG