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

What is Framer? Join the Community
Return to index
Patrick Hansen
Posted Nov 08 - Read on Facebook

Does anyone know if there is a way to declare "visible" within a state? I want to create a state called "inactiveState" and do something like this: layerName.states.add inactiveState: {visible: false} . I can get this to work with the opacity property, but not with visible and I actually need to use visible for my scenario.

2 Comments

Chris Lee

It's a bit messy, but you do it manually with Events.StateDidSwitch. I think this is something that should be added to Framer: allow arbitrary properties to be associated with states and just switch when the animation ends if they're non-animatable.

Patrick Hansen

thanks. I'll try working with that.

Read the entire post on Facebook