Next dynamic page when scrolling

Hi, everyone :grin:

Hope you all are doing fine

I have some Dynamic Pages, what I’m looking for is to activate a “Next dynamic page” when the user scrolls down, or when the user presses the down arrow button :arrow_down:.

And the same with going up, if the code detectes that the user scrolls up, the page will take you to the previous Dynamic page or pressing the up arrow button :arrow_up:

Is it there a way to activate these functions?

Thank you so much for your time and answer! :grin: