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

What is Framer? Join the Community
Return to index
Édouard Urcades
Posted Apr 21 - Read on Facebook

hi!

what might be the best way to trigger an event to occur when one element is over/under another element? was combing thru the examples and couldn't find anything that helped — attempted to build a loop along the lines of : "if midX of componentA = midX of componentB, reveal component C" but I scrapped that after it ended up not working.

3 Comments

Trevor Phillippi

Here's an example where we watch for change:x/y and then do some checks to tell whether the bounds are intersecting http://share.framerjs.com/be0qtr0gqa1y/

Trevor Phillippi

Here is the key portion:

Édouard Urcades

this is a perfect example, thank you for the speedy reply!

Read the entire post on Facebook