Streaming live at 10am (PST)

Auto load next page on scroll

I was wondering whether it’s possible to make a new page load automatically once the user scrolls to the bottom of the page and discard the previous one, like here:

I have managed to create an infinite scroll but although it makes the transition to a new page automatically it also keeps the previous page in the browser above it.

Live site:

Read only:

Any tips?

1 Like

Nice effect. Looks like some custom code was used… especially to change the URL in the browser address bar.

Hi @Asaf_Ovdat,
apparently you managed to do it. How did you achieve it and do you think it’s also possible with only CMS Pages (e.g blog posts)?

Hi @creatspot,
I did not managed to make the previous page disappear, it’s still there if you scroll up.
And what i did worked without CMS, just a regular page, though you can definitely use CMS.

Hi @Asaf_Ovdat, now I get what you mean. But I think your site is perfect for a usecase I want to imitate and which is also used by VICE magazine (

What kind of custom code did you use?

You can find it here:
It’s full of features but i can’t remember from which part i took mine.

@Asaf_Ovdat I checked out your read only site that scrolls the different pages through infinite scroll but could not see how you used the code. Can you either make the project clonable or share the way you made that? thanks a lot!!!

Hey @Reda_Ben, I applied this custom code to the projects footer code:

<script src=""></script>

 var nextPages = [
// init Infinite Scroll
  path: function() {
    return nextPages[ this.loadCount ];
  append: '.article',
  status: '.scroller-status',
  hideNav: '.pagination',
  scrollThreshold: 0,