Snippets

JQuery fade in/fade out

fade in/fade out using jQuery.

q1 = {
	init: function() {
		$("table.appTranslation").click(function() {
			$(this).fadeOut('slow', function() {
				$(this).html("Text to change").fadeIn('slow');
			});
		});
	}
}
q1.init();

});

Source: http://snipplr.com/view/912/jquery-fade-in-fade-out/...

Share this snippet

 
  • http://www.hostsleek.com Morris

    How do one slow down the image transition. To lets say 2-3 seconds