Trigger event at page depth

I’m looking to trigger an event when the user scrolls to a certain depth in the page. Is this possible?

In the OnWindowScroll event, test against [[Window.scrollY]], like “If [[Window.scrollY]] greater than 1000” or “If [[Window.scrollY]] equals [[]]” where LVAR1 points to some widget at your target location (depth.)

You can find this and most any built-in variable in the “fx” function dialog like so:

You can find several good examples of this by searching for Window.ScrollY or “window scroll” on this forum. Good luck!

1 Like