This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Ee Venn Soh
Posted Jan 04 - Read on Facebook

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.

2 Comments

Ee Venn Soh

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

Ee Venn Soh

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

Read the entire post on Facebook