1
0
Fork 0

Fix preloader delay

main
Nisay 2 years ago
parent fc04d7a27c
commit 456be03358

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

Loading…
Cancel
Save