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" tostate.a = opacity: 0state.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!
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.
Thanks! i was missing this "Or you can just set up your properties beforehand: sketch.back_phone_number.opacity = 0." :) :) Really appreciate your help!