我有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做他们的动画或淡入/淡出我点击后。我想在点击幻灯片后淡入淡出效果,然后在幻灯片更改后自动淡入图像。谢谢。