2017-09-27 12 views
0

내 부트 스트랩 웹 사이트 용 GIF로드 페이지가 추가되었지만 작은 문제가 있습니다.이 이미지 로더는 매우 빠르게 로딩됩니다.이 로더의 지속 시간을 지정해야합니다. Im은 duration을 추가했지만 작동하지 않습니다. 어떻게 해결할 수 있습니까? 감사웹 사이트 페이지 로더 지속 시간 호

$(window).load(function() { 
 
\t \t // Animate loader off screen 
 
\t 
 
\t \t $(".se-pre-con").fadeOut("slow"); 
 
\t \t 
 
\t \t ; 
 
\t });
no-js #loader { display: none; } 
 
.js #loader { display: block; position: absolute; left: 100px; top: 0; } 
 
.se-pre-con { 
 
\t position: fixed; 
 
\t left: 0px; 
 
\t top: 0px; 
 
\t width: 100%; 
 
\t height: 100%; 
 
\t z-index: 9999; 
 
\t background:url("https://thumb.ibb.co/hqtTTk/Preloader_2.gif")center no-repeat #fff; 
 
}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> 
 
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.2/modernizr.js"></script> 
 
<body> 
 
<div class="se-pre-con"></div> 
 

 

 
</body>

답변

1

이 시도 :

setTimeout(function(){ $(".se-pre-con").fadeOut("slow"); }, 3000); 
+0

감사합니다 선생님, 그 당신은 환영 야있어 – core114

+1

작업 –