I have this code and it works, except for the fadeIn transition.
$("div.thumbnailsContainer").fadeOut("500",function(){
$("div.fullViewContainer").empty();
$('<img />')
.attr('src', imgPathLarge)
.load(function(){
$("div.fullViewContainer").append( $(this) );
$("div.fullViewContainer").fadeIn("1000");
});
});
The problem is that after the image is fully loaded, the fadeIn transition will not work properly, it will appear only after loading, but without the transition.
what could be the problem with my code?
Do I need to set setTimeout to the transition delay after loading the image?
source
share