Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Fade from page to page + loading bar Reply To: Fade from page to page + loading bar

#252830
Shikkediel
Participant

I’m slightly confused about the effect of the classes but I think that it would be a good idea to put the .show() inside the timeout as well:

function newpage() {
  window.location = newLocation;
  $('body').addClass('hide-nav');

  setTimeout(function() {
    $('body').show().removeClass('show-nav hide-nav');
  }, 500);
}