How do I trigger an event when a page starts scrolling in the Wix editor?

Question:
i want to do something when the page start scrolling.
Product:
wix editor + velo

What are you trying to achieve:

What have you already tried:
i didn’t find event onScroll,

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]

Hi, user2605 !!

In the standard Wix Editor, I don’t think it’s possible to set scroll events, but in Wix Studio, scroll-related animations and similar features can be achieved as a built-in function of the editor. However, I understand that what you’re likely aiming for is not that, but rather triggering some Velo code when the page scrolls. With that in mind, to answer your question: yes, it is possible to capture scroll events even in the standard Wix Editor. However, you will likely need to use custom elements. Unlike iframes, custom elements are embedded directly into the Wix page, allowing you to capture events that occur on the page itself! :wink:

1 Like

Hey Shoshana,

Alternatively, you can also try this approach: