Detect Scrolling

Hi,
I am trying to detect when a user scrolls down on my landing page then show a particular element, any ideas?

Warmly
Mazen

Hello Mazen,

The onViewportEnter( ) event is exactly what you need.
It fires once the attached element is visible.

You can also register for onViewportLeave() to have the reverse effect.

1 Like

Thanks Ido!
I was wasting time trying to use getBoundingRect(), this is what I exactly want.
By the way, what about of this source?! http://intense-brook-61045.herokuapp.com/$w.html
I cant use many of the methods and functions… Should I only stick to the official Wix Code API?

Hi,

This documentation is no longer relevant.
Could you let us know where do you see this link ?

Thanks

I found it on google trying to search for wix fucntions