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

What is Framer? Join the Community
Return to index
Poojan Jhaveri
Posted Jul 08 - Read on Facebook

How do I disable back Layer when I bring any layer to front by bringToFront(). For eg. I want to disable the view when I bring alert to front.

3 Comments

Krijn Rijshouwer

Hey Poojan Jhaveri,

I don't know if I fully understand what you'd like to achieve. Would you like to fade out the view behind the alert? Here's a little example → http://share.framerjs.com/fftz055k8fvz/

Poojan Jhaveri

Thanks Krijn Rijshouwer but No I'd like to disable the interaction on the view behind the alert. Any suggestions ?

Krijn Rijshouwer

Ah, you can use event propagation for this. You can read about it here → http://www.w3schools.com/jquery/event_stoppropagation.asp .

Simply get the event parameter from the click, tap or swipe etc. and set event.stopPropagation() so it won't run any other events.

Read the entire post on Facebook