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

layer.states.active =
__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

2 Comments

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: http://share.framerjs.com/ol9nzu2nl9io/

Read the entire post on Facebook