a lot of things pointing to plugins to do crossfades and stuff, but nothing fits my needs.
I have 2 things on my page: Large image, div containing 3 or four small thumbnails
when you click a sketch, it reads in src and changes the original source image to a new image.
how can I make him disappear until the other disappears (so that he doesn't go to anything and then disappears in the new image)
heres my code:
$('.TnImage').live('click', function() {
var newImage = $(this).attr('src');
var oldImage = $('.mainImage').attr('src')
$('.mainImage').fadeOut('slow');
$('.mainImage').attr('src', newImage).fadeIn('slow');
});
Just to clarify why I don’t want to use existing plugins, most of them require you to know the list of downloadable images before distributing thumbnail images from mysql database via php, d don't need to do 2 lists for thumbnails and 1 for main images and then hide everything but one main div with the image I want to show.
, , , , , , jquery. IMAGESWITCH, jQuery 1.4.3, html-(), , , , .