안녕 얘들 아!정확한 로그 메시지에도 불구하고 JQuery fadeIn()이 작동하지 않음
최근에 작성한 홈페이지에 약간의 문제가 있습니다. 클래스 "content"로 HTML div를 퇴색 시키려고했는데 두 로그 메시지를 콘솔에 출력했지만 여전히 페이드 인합니다!
는나는, 물론, 그 코드 제거 모든 필요하지 않은 정보는
가 여기 내 HTML
<div class="content"> </div>
그리고 내 CSS
.content{
margin: 0px;
position: fixed;
display:none
background-image: url("../img/city_topdown_blurred.png");
background-size:cover;
width: 100%;
height: 100%;
}
그리고 마지막으로 내 jQuery의 니펫
$(document).ready(function(){
console.log("fading in");
$('.content').fadeIn("slow", function(){
console.log("fading done");
});
});
시간이 10000 이상으로 설정된 경우에도 두 가지 로그 메시지가 즉각 브라우저 (Chrome) 으로 푸시됩니다.
오케이 그걸 보지 못했습니다. –