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

What is Framer? Join the Community
Return to index
Matt Baxter
Posted Aug 27 - Read on Facebook

Is there a way to programmatically access the properties of a state on a layer? For example, if I wanted to know what the height would be for a given state, is there something like layer.state['active'].height?

1 Comments

Niels van Hoorn

The above is currently the only way, but we're working on a method that would allow you to do
layer.states.active.height
For more info: https://github.com/koenbok/Framer/issues/378

Read the entire post on Facebook