J'ai 12 diapositives avec des images. Je veux utiliser des animations jQuery ou un effet de fondu entrant/sortant. Voici mon code:jQuery Animation fondu en fondu
$('#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);
});
Mais le problème est, quand je clique à # LI5 de # LI4, le #bnrImg et #chnlLogo font leur animation ou fade in/fade out après avoir cliqué. Je veux avoir l'effet de fondu après avoir cliqué sur une diapositive, puis fondu automatiquement dans les images juste après le changement de diapositive. Merci.