I try to animate my SVG (injected through Framer layers) with GSAP but in vain. If I paste my SVG in HTML directly, it works, If I inject my SVG with jQuery it works. But not Framer + GSAP. Any idea? Here is a codepen for it.
It seems that Framer creates the layer async. Is there an event when the layer is created? So I can use a callback to run my GSAP code? Koen Bok
Alright, solve it. http://codepen.io/vennsoh/pen/MKJqrO The Framer docs already specified this. "To reliably get a reference to a DOM element, use layer.querySelector or layer.querySelectorAll." http://framerjs.com/docs/#layer.html