/ Published in: jQuery
In scripts.js
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(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 }); });