Sticky section JS/JQuey solution doesnt work in Mendix

0
I’m trying to implement a simple sticky section so that when I scroll the page it should stop moving after touching the top screen border. I tried several JS and JQuery solutions, adding them with HTML/JS snippet widget,  but none of them work for some reason. Interesting that I can use JQuery to add a class on click, so the code is being executed with no errors, maybe the onscroll event doesn’t work properly, or the issue is somewhere else. Is there any way to fix it or is there any widget that could help me to make a sticky section like this? http://jsfiddle.net/5n5MA/2/
asked
1 answers
1

Hi Maxim,

See this example: https://jsfiddle.net/cdekraker/zkpj56r7/5/

Maybe the hardest part is to find the right container in your page structure, but it's not very hard with this new “sticky” value for the position.

answered