Return to Snippet

Revision: 62178
at February 6, 2013 15:34 by wanlapat


Initial Code
$(function() {
	$('a img').css("opacity","1.0"); //set initial opacity
	$('a img').hover(function() {
		$(this).stop().animate({ opacity: 0.75 }, "fast"); //on mouse hover
	},
	function() {
		$(this).stop().animate({ opacity: 1.0 }, "fast"); //on mouse out
	});
});

Initial URL


Initial Description
In scripts.js

Initial Title
Change Image Opacity on Hover

Initial Tags
image, jquery

Initial Language
jQuery