이 사이트의 프리 로더는 http://exit.santamartastudio.es/이며 가끔 프리 로더를 숨기고 일부는 프리 로더를 숨 깁니다. 나는 그것을 찾았지만 왜 그것이 실패하는지 모르겠다.jQuery Preload dissapearing
UPDATE (여기에 코드입니다) :
$(document).ready(function(){
setLoader();
Here I load the rest of jquery
});
$(window).load(function() {
hideloader();
});
기능 :
// Setloader
function setLoader() {
disable_scroll();
$('body').css('overflow', 'hidden');
}
// Hideloader
function hideLoader() {
var windowWidth = $(window).width(); //retrieve current window width
$('#loader img').animate({
left: '+=' + ((windowWidth/2) + 100)
}, 1000, 'easeOutExpo');
$('#loader span').animate({
left: '-=' + ((windowWidth/2) + 100)
}, 1000, 'easeOutExpo');
setTimeout(function() {
$('#loader').fadeOut(800, 'linear', function(){
enable_scroll();
$('body').css('overflow', 'visible');
$(this).hide();
});
}, 200);
}
프리 로더를로드하는 js를 볼 수 있습니까? – Vortex
콘솔에 두 개의 오류가 있습니다. 하나는 'ReferenceError : 변수를 찾을 수 없습니다 : hideloader'입니다. JavaScript를 사용하여''strict strict ';'를 사용하면 가장 강한 오류를 얻을 수 있으므로 오류가있는 경우 역 추적 할 수 있습니다. –