Jump to content
Search Community

Iconic SVGInjector Preventing GSAP Animations

jimthornton test
Moderator Tag

Go to solution Solved by Diaco,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

So it looks like Iconic SVGInjector.js is preventing GSAP from firing? I've tried a couple of different things and it seems to only be an issue when animating SVGs or specific indicators within an SVG. I noticed this on my dev site and added simplified demos below.


Working example with inline SVG + GSAP

See the Pen YXrNdr by jimthornton (@jimthornton) on CodePen


Broken example with SVGInjector working, but GSAP not firing - just a static SVG.


Does anyone have any experience with this issue? I'm wondering if there is a workaround, alternative for getting the benefits of inline SVG without them being inline so they can cache, or if SVGInjector just injects the SVGs inline to the DOM too late? 


See the Pen BNwpvO by jimthornton (@jimthornton) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...