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

What is Framer? Join the Community
Return to index
Lukas Guschlbauer
Posted Mar 07 - Read on Facebook

Quick noob-question:
How can I persist a state-change?

Scenario:
Button Hover-Effect with MouseOver, MouseOut and on Click it gets an Active-State.

Right now (which makes sense) the active state gets removed on MouseOut.

3 Comments

Arie Aulia Nugraha

I usually put conditional on MouseOut, something like:

Layer.onMouseOut →
If this.state.current.name != "active"
this.stateSwitch("default")

Lukas Guschlbauer

Thanks! Yeah, that would have been my way now too... thought there was a nicer way!

Robert van Klinken

Dijana Atanasovska

Read the entire post on Facebook