Hey,
Any ideas why this isnt working?
I want the images in the sidebar to go opaque when hovered.
//Opaque image hover
$('#sidebar ul li img').hover(function() {
$(this).animate({opacity: 0.8}, 500);
}, function() {
$(this).animate({opacity: 1}, 500);
});
<div id="sidebar"><!--Sidebar start-->
<ul>
<li><img src="images/darkroom.png" alt="Darkroom software" class="png"/></li>
<li><a href="#"><img src="images/download.png" alt="Download" /></a></li>
<li><a href="#"><img src="images/features.png" alt="Features"/></a></li>
<li><a href="#"><img src="images/prices.png" alt="Prices"/></a></li>
<li><a href="#"><img src="images/support.png" alt="support"/></a></li>
</ul>
</div>
Thank you