Loading SVG Externally and changing TweenMax.selector in GSAP Posted January 26, 2019 Hi, I am loading my SVG file externally in an object tag because I wish to use gzip compression for my SVG. Because my SVG is now loaded separately, I can not select the elements inside the SVG with the default Greensock selector. https://greensock.com/forums/topic/11187-accessing-svg-paths-in-external-file/?do=findComment&comment=45132 I have tried this solution, but I don't wish to wrap doc.getElementById('') around all of my selectors instead of the default Greensock ' ' selector. Is there a way to modify the TweenMax.selector so my selectors will be referencing that document? Thank you.
Loading SVG Externally and changing TweenMax.selector
in GSAP
Posted
Hi,
I am loading my SVG file externally in an object tag because I wish to use gzip compression for my SVG. Because my SVG is now loaded separately, I can not select the elements inside the SVG with the default Greensock selector.
https://greensock.com/forums/topic/11187-accessing-svg-paths-in-external-file/?do=findComment&comment=45132
I have tried this solution, but I don't wish to wrap
around all of my selectors instead of the default Greensock ' ' selector.
Is there a way to modify the TweenMax.selector so my selectors will be referencing that document?
Thank you.