Loving Framer!see the last line of the code... it just prints "Default" How do I get it to sense which STATE is currently visible. Maybe I'm not using .current correctly.
Hmm, you could either put the print declaration within the TouchEnd function or use:
superLayer.on Events.StateDidSwitch, ->...
i dont want to print anything, I want to a momentum-y scroll that as it slows down snaps in to which ever box is visible. Maybe I should not use states for that....and instead just use "y" value and create a range and snap to the closest box.
What does .StateDidSwitch do?
It fires after the layer has switched states.
Sounds like it might help. Thanks.
.StateDidSwitch should also work with .next() and .previous() ?
Yes, it also fires after switching with next/previous.