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

What is Framer? Join the Community
Return to index
Kai Oliver Reuter
Posted May 09 - Read on Facebook

Hey all! I have a question for using scroll.closestContentLayer with an if statement. For example: if "scroll.closestContentLayer" == "id:26" --> do something. Im looking for the right syntax. Thanks!


Ben Rodenhäuser

I think what you should work is 'if == 26'

Kai Oliver Reuter

thanks, i'll try it out 👍

Kai Oliver Reuter

it works but i have to defined an OriginX and OriginY value: scroll.closestContentLayer(originX, originY).id == 26

Read the entire post on Facebook