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

What is Framer? Join the Community
Return to index
Andy Cetnarskyj
Posted Jan 09 - Read on Facebook

Is there a way or module to attach multiple variables to a layer, so you can pass values between events?

The only variable I can see in default layer is the name property?

5 Comments

Struan Fraser

There's a custom property for layers which you can define as anything you like.
Example here - http://pastebin.com/MJUqE5Gp

Mike Johnson

You can make up any property on any layer and set it as you wish. Just use the dot syntax after creating the layer to create a new property on the layer object.

Rohan K

great question! i see two different approaches here, are they both valid?

Jordan Robert Dobson

Custom is better because you are sure you won't conflict in the future.

JinJu Jang

I'd recommend to use function and use it as functionName(layer) if what you want to do is simply save time by applying the same styles to different layers! 😉

Read the entire post on Facebook