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

What is Framer? Join the Community
Return to index
Simon Griffeth
Posted Mar 23 - Read on Facebook

Hello. I'm trying to have a button switch from one state, back to the default state with only 1 click. Using "layer.states.next()" allows me to do this, but i have to click to go back to default state. Any thoughts? Thanks!

6 Comments

Jonas Treub

What kind of effect are you after?

Simon Griffeth

click button > button changes to opacity 0 > wait .4s > button changes back to opacity 1

Simon Griffeth

yeah, thats pretty much it. thanks!

Simon Griffeth

hmm...it's throwing an error, "button.onStateDidSwitch is not a function"

Jonas Treub

The current version of Framer does not yet have the onStateDidSwitch event method. If you choose Update Framer from the File menu you can download it for you open document.

Read the entire post on Facebook