Home › Forums › CSS › Fade from page to page + loading bar › Reply To: Fade from page to page + loading bar
March 15, 2017 at 3:44 pm
#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);
}