I need to change the src attribute of an image with jquery. Everything works perfectly, I only need to apply an effect that I can not put. I do not know if the way I did it is the exact way to get the result I want.
html
<img id="slide" src="img/img.png"/>
<a id="um">um</a>
<a id="dois">dois</a>
<a id="tres">três</a>
jquery
$("body").on("click","#um", function(){
$("#slide").attr("src","img/1.png").fadeIn(2000);
})
$("body").on("click","#dois", function(){
$("#slide").attr("src","img/2.png").fadeIn(2000);
})
$("body").on("click","#tres", function(){
$("#slide").attr("src","img/3.png").fadeIn(2000);
})