Is there any way we could get to the origin state for a layer?
So I have this case
originState -> click(open) -> stateA -> click(close) -> stateB -> originState
I thought that we could use card.states.current("...") but I don't know what to fill into the quote marks.
I guess you can use the switch function to get to the state that you want.E.g: LayerName.states.switch("OriginState")
Basically you can switch to any define states in the layer that you want
The initial state of everything is called 'default'
Hey Huy Nguyễn,
You can do this by calling layerA.states.switch("default"). Here's an example → http://share.framerjs.com/qat0velmqbw6/
and don't forget to reset to default state after animation end by calling layer.onAnimationEnd -> layerB.states.switchInstant("stageName")