Random blank screen flash between pages

Hello,

I made a seamless “wipe” transition between my home hand 2 main pages of my portfolio.

Sometimes it works and some other times a blank body shows in between the 2 pages and breaks the seamless experience.

  • On clic I start an animation.
  • Then I use this in my side wide footer code to let the transition play before to go to the link:
$('a.link').click(function (e) {
    e.preventDefault();                   // prevent default anchor behavior
    var goTo = this.getAttribute("href"); // store anchor href

    setTimeout(function(){
         window.location = goTo;
    },700);       
}); 
  • And the animations on main pages are set on “When Page finishes loading”

Any idea where that come from or how to prevent it?
Here for the published version

Thanks!


Here is my public share link: LINK
([how to access public share link][2])

[2]: Share your site and invite collaborators - Webflow University Documentation emphasized text