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

What is Framer? Join the Community
Return to index
Katie Wu
Posted Jul 13 - Read on Facebook

For states, can we manipulate the visibility of a Layer's sublayers?
For example (I know the syntax is wrong but this is essentially what I'm trying to do):

1 Comments

Jonas Treub

That won't work but you could write a function which changes multiple layers at ones. Either by changing their properties or states. For example:
layerName.on Events.Click, ->
[tab]functionName()

functionName = ->
[tab]layerName.width = 200
[tab]sublayerName.width = 200

Read the entire post on Facebook