Skip to content

Instantly share code, notes, and snippets.

@whistler
Created August 14, 2011 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whistler/1144542 to your computer and use it in GitHub Desktop.
Save whistler/1144542 to your computer and use it in GitHub Desktop.
jQuery onHover Opacity
<script type="text/javascript">
jQuery(function(){
jQuery('#content div.portfolio,#content div.portfolio-small').hover(function(){
jQuery(this).find('img').fadeTo("fast", 0.5);
}, function(){
jQuery(this).find('img').fadeTo("fast", 1.0);
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment