Instantly share code, notes, and snippets.

What would you like to do?
A simple image opacity effect for use on images as links.
<!-- Wrap image in a div with class="brightness" -->
<div class="brightness">
<img src="">
<!-- Add CSS to create the opacity effect -->
<style type="text/css">
.brightness {
background-color: white;
display: inline-block;
.brightness img:hover {
opacity: .5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment