Got an annoying problem and cannot seem to rectify...
The following will fade and image out, the callback will then remove the image and insert a new one, on load of the new image it should fade back in... but it seems to be fading back in super fast or rather just showing the new image..
if($('#gallery-image img').css('opacity') == 1){
$('#gallery-image').children('img').fadeOut(sawdays.gallery.transitionTime , function(){
$(this).remove();
$('#gallery-image').append(newImg);
$('#gallery-image img').load(function(){
$(this).fadeIn(sawdays.gallery.transitionTime);
});
});
}
I was wondering if anyone could see anything i was doing wrong with it... i've already spent too much time on this :S