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

What is Framer? Join the Community
Return to index
Thomas Engebrand
Posted Apr 12 - Read on Facebook

Hey, how can I disable a button when a layer is visible above it? For example clicking a button triggers a full page overlay but I can still click the button underneath through the overlay. Hope that makes sense...

3 Comments

Andy Jakubowski

You could tell the button to ignore events after it’s been tapped: https://framer.cloud/RRMpZ/

Jonas Treub

If you make the button invisible until its interaction will be disabled

Thomas Engebrand

Thanks! I JUST found another solution. I used "bringToFront" on the overlay when active and "sendToBack" when inactive

Read the entire post on Facebook