Forum Discussion
SVG File Issues
I'm having trouble incorporating .svg files to my storyline file. When I add the .svg files (Picture 1), the color and fill is perfect on the screen. When I preview/publish the file, the fill seems to disappear in portions of my .svg file (Picture 2). Any insight would be MOST helpful on this matter. I've included pictures for reference.
- LawrenceBlairCommunity Member
- MauraSullivan-9Community Member
BTW. Your exercise of topography maps looks great. It brought back memories of 8th grade Earth Science which I loved.
- AndreaKoehntop-Community Member
Hi Mark!
I Just wanted to check in and see if Earl's method worked to solve your issue? If not, please open a support case with us so we can troubleshoot further.
Hi Larry!
I apologize for the issues you are experiencing, and thanks for sharing a screenshot.
If you haven't done so already, you can check the SVG export settings (from the image editor you used). Since SVG is created in a way that other published files can control, you might want to adjust your export settings to see if better results appear.
Have you tried any of Earl's tips and tricks? It looks like it has worked well for some community members.
If none of that helps, please open a support case with us so we can investigate further.
- AWSPPOCommunity Member
I have not been able to import SVGs successfully even with the newest SL360 update. I imported one and now all my text is invisible in global preview mode, but not on individual slide previews.
- AndreaKoehntop-Community Member
Hi AWS PPO!
I apologize for the issues you are experiencing importing SVGs in Storyline.
There have been a lot of valuable workarounds that have helped many people in this thread, specifically Earl's ideas here.
Also, if you haven't done so already, you can check the SVG export settings (from the image editor you used). Since SVG is created in a way that other published files can control, you might want to adjust your export settings to see if better results appear.
If you need additional assistance, please don't hesitate to reach out to us in a support case!
- AWSPPOCommunity Member
What's happening now is I am making my animated SVGs, when I import that SVG into my SL Project all other text in the project goes invisible. When I remove the SVG from my Storyline Project all the text returns.
It's almost like the SVG text is controlling all my other text styles/settings. Very odd.
- AndreaKoehntop-Community Member
Hi again AWS PPO!
If you are comfortable, it would be helpful if you could share the SVG with us publicly here or privately in a case so we can troubleshoot further. We will delete it from our systems when troubleshooting is complete.
- AWSPPOCommunity Member
- Jürgen_Schoene_Community Member
Hi,
open the svg in an text editor and remove the lines<style type="text/css">
text {
text-anchor: middle; font-size: 80px; opacity: 0;
}
</style>"opacity: 0" set all svg-text (in storyline) to invisible
Jürgen
- MathNotermans-9Community Member
@JurgenSchoenemeyer
Really happily surprised that the SVG animation in this sample works. Using SVGator for SVG animation i cannot get that to work in Storyline.As it does work normally in the browser, i really need to study the differences between these 2 SVGs...
The bird sample added is easier...and checking that one its probably the way the animation is coded in the SVG. The text animation has the animation clearly separated in tags. The SVGator one has keyframes and is more integrated. Guess Storyline has issues with that.
- AWSPPOCommunity Member
Thank you!!!
- Jürgen_Schoene_Community Member
Hi,
here are the corrected SVGs, Storyline doesn't seem to support putting the animation instructions in a separate style tag. The animation description can stay there.
not stoyline compatible:<style>
#eteEOPbDcB539 {
animation: eteEOPbDcB539_tr__tr 1500ms linear infinite normal forwards
}
@keyframes eteEOPbDcB539_tr__tr {
...
}
}
</style>
<g id="eteEOPbDcB539_tr" ... >storyline compatible
<style>
@keyframes eteEOPbDcB539_tr__tr {
...
}
}
</style>
<g style="animation: eteEOPbDcB539_tr__tr 1500ms linear infinite normal forwards" ... >https://360.articulate.com/review/content/2a574975-8760-42f3-81ba-117825a979aa/review
Jürgen
- MathNotermans-9Community Member
Perfect Jurgen. This opens up so many possibilities with animated SVG. Now figuring out how to trigger it with Javascript in Storyline...to start/stop SVG animations...and do other fabulous stuff.
- MauraSullivan-9Community Member
That looks great! I'm looking forward to see how you trigger it in SL.
- MathNotermans-9Community Member
Jurgen ? Can you tell me how you that quickly convert/fix the SVGs. When i open them in Sublime its just a lot of text hard to decipher what needs to be changed to get it working properly.
Added a animated SVG in which a mouseover the SVG element starts the animation... following up on that a next step might be triggering it from Storyline...