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

What is Framer? Join the Community
Return to index
Tanner Christensen
Posted Feb 25 - Read on Facebook

I must be thinking about this in the wrong way and could use some help.

I have a number of layers which will need to be switched between two states on click: visible and hidden (with opacity at 1 and 0 respectively). Because I will want these states to be actively switched, I'm setting the layers in Sketch to be visible at-start (since Framer seems to have issues with hidden layers from Sketch) and then using states.switchInstant to hide the layers. My problem is that when I click on the object and it changes states, there's a slight flickering effect. What's the best way to approach situations like this?


George Kedenburg III

did you try just setting the opacity via layer.opacity instead of using switchInstant?

Tanner Christensen

George So weird that I didn't think of that. I believe that works fine, thanks!

Jason Valenti

Yep...layer.opacity will do the trick

Read the entire post on Facebook