@rileyj_s
What I mean by glitchy is that when I scroll down on mobile, once I reach the bottom of the page it appears again at the top which is great BUT the scrolling delay completely stops. I don’t want the scrolling to come to an abrupt stop. Does that make sense?
When I get to the bottom, the top appears again but it comes to a stop which is not the effect I want. Is there anyway to get around this? I want the scroll to be continuous, fluid and smooth throughout the loop like it is on desktop.
Hi @Andres_Soler, I’m actually working on something that requires this functionality so I’ll update this thread with a solution [hopefully] soon. As a side note, the example you referenced is actually not looping the scroll on mobile - Rather, they are infinitely repeating the content (down only), which means the content gets longer and longer as they user scrolls down.
What I’m working on is fairly similar to what you’ll find here: http://newland.tv/
I unfortunately cannot make it cloneable as I’m using the Greensock ‘Modifiers’ and ‘ThrowProps’ plugins which are paid-for only ($99/yr). Happy to share it with you without those plugins included.
@cjh@Andres_Soler hey this looks great! Are you able to share the solution you both found please? Incredibly new to Webflow so I’m still finding my feet with all of this
Hi everyone! I came here from the future with a possible solution with some help from ChatGPT. I asked essentially how to make this code work and after some back-and-forth I got code that works as described here.
ChatGPT described what it did as
This code works by creating a clone of the body contents and prepending it to the body element. This creates the illusion of infinite scrolling. The $(document).scroll function is then used to detect when the user has scrolled to the top or bottom of the page. If the user has scrolled to the bottom, the page is scrolled to the top and the blocker variable is reset. If the user has scrolled to the top, the page is scrolled to the bottom and the blocker variable is reset.
When I tested the code in the question it worked nicely downwards but not upwards, and did not work in mobile. What needed to happen was to ensure 100% symmetry on both viewports. I managed by using a full-screen first screen and full-screen last screen.