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

What is Framer? Join the Community
Return to index
Sergey Voronov
Posted Aug 30 - Read on Facebook

any ideas why I can't interact with layer created by the function?


Sigurd Tapio Mannsåker

The secondLayer variable is only available inside the function it's declared in. I'm on my phone, but you could either set it outside the function or have the function return it. So at the end of the function put "return secondLayer", and then do "secondLayer = createLayer()" for example. Also make sure to indent the backgroundcolor and name :)

Brian Williams


Read the entire post on Facebook