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

What is Framer? Join the Community
Return to index
John Lee
Posted Apr 10 - Read on Facebook

Any way to set a global state and apply it to any layer?
For example:

dog = new Layer
fish = new Layer =
__backgroundColor: 'red'

dog.onClick ->
__fish.stateSwitch 'active'

This would be SUPER useful if we can!
PS - sorry for posting almost everyday, but I'm a curious person


Sam Olaogun

Create a state object detailing all of the states and assign each Layer state object to an object contained in that state object. It's actually not that bad. Here's an example:

Read the entire post on Facebook