jQuery를 사용하여 페이지의 새 콘텐츠를로드하는 히스토리 API 스크립트가 있습니다. 새로로드 된 div를 #load
으로 어떻게 페이드 인 할 수 있습니까?Fadein AJAX가 페이지에서로드 됨
$.ajax({
url: url,
type: 'GET',
dataType: "html",
success: function (responseData) {
$("#main").html($("#load", responseData).html());
if (url =='Home'){
$.get("phpscripts/getFeed.php",function(result){
$("#newsFeed").html(result);
});
}
},
error: function (jqXHR, textStatus, errorThrown) {
alert(jqXHR.status + " : " + errorThrown);
}
});
Jquery.fadeIn()을 사용해 볼 수 있습니다. http://api.jquery.com/fadeIn/ – sinanakyazici