Hi
In jQuery, we can use the code as shown below to make the image dark. Otherwise, how can we draw an image?
$(this).hover(function() {
$(this).stop().animate({ opacity: 0.5 }, 500);
},
function() {
$(this).stop().animate({ opacity: 1.0 }, 500);
});
source
share