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

What is Framer? Join the Community
Return to index
Stan Tan
Posted Feb 17 - Read on Facebook

Hey lovely peeps, I'm having trouble to define the properties of one layer within a group, which was imported from sketch. Is there a way to do so?

E.g. : referring to image, I'm trying to set the layer "back_phone_number" to
state.a = opacity: 0
state.b = opacity: 1

and trigger this change of state with an event. However it seems that i could not set the above values (or at least, it didn't apply to them).

Background: i imported from a Sketch file with 2 art boards, my idea was to animate the states from art board 1 to art board 2. Hope to get some help here!

2 Comments

Aalok Trivedi

States won't trigger unless you have an event. You need to set up the layer to have an opacity 0. You can do back_phone_number.stateSwitch("a") right after so the layer auto starts at state a. Or you can just set up your properties beforehand: sketch.back_phone_number.opacity = 0.

Stan Tan

Thanks! i was missing this "Or you can just set up your properties beforehand: sketch.back_phone_number.opacity = 0." :) :) Really appreciate your help!

Read the entire post on Facebook