Hi I show a div on click, but the content of this div is some pretty big images and I want to add a preloader meanwhile the div is loading... I've been trying with jquery .load but can only get it to work when page first is loaded and not on click.
so i want a loader gif to be presented when aboutclick is clicked and hidden when all the content id #aboutcontent is loaded.
function aboutClick(){
$('#workContent').fadeOut(400,'easeInQuint');
$('#aboutContent').fadeIn(400,'easeInQuint');
};
$('#aboutContent').load(function() {
jQuery("#gif").show(100);
});