Is there a way to implement a JavaScript scroll event listener into a page?

3
I have a list view and would like each list item to fade into view as the user scrolls down the page. I have already got this functionality working with some JavaScript in a local test webpage, targeting some empty div elements. I tried adding an HTML/ JavaScript Snippet Widget into my Mendix page containing this code, however it does not seem to be working in the output.  Here is a screenshot of the code I’m using: The code is defining a scroll event listener, which fades-in a box element using a CSS animation, provided it is within the user’s viewport. It seems like the event listener is what’s causing problems in Mendix, as simple styling works fine. Does anyone know why this isn’t working? Is there a feature in Mendix that allows me to add a listener to a scroll action? Thanks.
asked
0 answers