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

What is Framer? Join the Community
Return to index
Noah Tsutsui
Posted Aug 12 - Read on Facebook

Hey... is there a way to create two instance with identical properties, but unique names using a for statement? Something like, "for layer in [card1, card2]"


Benjamin Den Boer

Hey Noah Tsutsui - you could create two unique layers without defining properties for them yet - then loop over them, and define the properties of both of them:

Jacky Lee

Benjamin Den Boer is layer.props documented anywhere? or is this something basic that javascripters should know? I've always wondered what functions are Framer specific vs generic JS...

Noah Tsutsui

Hu, I didn't think of that. Thanks Ben.

Read the entire post on Facebook