이미지가있는 슬라이드가 12 개 있습니다. jQuery 애니메이션을 사용하거나 페이드 인/페이드 아웃 효과를 사용하고 싶습니다. 여기에 내 코드입니다 :jQuery 애니메이션 페이드 인 페이드 아웃
$('#Li4').click(function() {
$('#bnrImg').fadein(1000);
$('#chnlLogo').fadein(1000);
$('#mainBanner').css('backgroundColor', '#FBB03E');
$('#bnrImg').attr('src', 'images/cBanners/bnr_neuro.png');
$('#chnlLogo').attr('src', 'images/images.png');
$('#chnlLink').attr('href', 'http://link.tv');
$('#bnrImg').fadeout(1000);
$('#chnlLogo').fadeout(1000);
});
$('#Li5').click(function() {
$('#bnrImg').fadein(1000);
$('#chnlLogo').fadein(1000);
$('#mainBanner').css('backgroundColor', '#DB7EB4');
$('#bnrImg').attr('src', 'images/cBanners/bnr_diabetes.png');
$('#chnlLogo').attr('src', 'images/image.png');
$('#chnlLink').attr('href', 'http://link.com');
$('#bnrImg').fadeout(1000);
$('#chnlLogo').fadeout(1000);
});
하지만 #의 LI4에서 #의 LI5에 클릭 할 때 문제가되면, #bnrImg 및 #chnlLogo는 애니메이션을하거나 내가 클릭 한 후/페이드 아웃 페이드. 슬라이드를 클릭 한 다음 페이드 아웃 효과를 적용한 다음 슬라이드가 변경된 후 이미지가 자동으로 사라집니다. 감사.