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

What is Framer? Join the Community
Return to index
Bäd Rick
Posted Nov 28 - Read on Facebook

How can I create a function like this:

AtoB = (ViewA, ViewB) ->
imported[View_A].states.switch("hide")
imported[View_B].states.switch("slideIn")

To be able to use it like this:

AtoB(View1, View2)

2 Comments

Benjamin Den Boer

Hey Bäd Rick, like this:

Benjamin Den Boer

Note that you can also store specific imported layers within variables. Handy if you're going to be referencing them throughout your document.

viewA = imported[View_A]

Read the entire post on Facebook