Fix preloader delay

pull/10/head
Nisay 2 years ago
parent fc04d7a27c
commit 456be03358

@ -1,11 +1,9 @@
// back to top btn // back to top btn
$('.backtop-btn').click(function(){ $('.backtop-btn').click(function () {
$('html, body').animate({ scrollTop: 0 }, 'slow'); $('html, body').animate({scrollTop: 0}, 'slow');
return false; return false;
}); });
/* pre loader */ /* pre loader */
$(window).on('load', function () { $('#preloader').delay(450).fadeOut('slow');
$('#preloader').delay(350).fadeOut('slow'); $('body').delay(450).css({'overflow': 'visible'});
$('body').delay(350).css({ 'overflow': 'visible' });
})

Loading…
Cancel
Save