I am trying to make an effect where when one hovers on my greyscale image, the image turns to color and all the highlights hide.
I have achieved turning my images from greyscale to color on the hover, my problem resides in turning off the multiple highlights.
Here is a link so you can see where I'm at: www.karenrubkiewicz.com
And some coding:
HTML
<a href="#" ><img class="greyscale" src="images/projects/operakrakowska/operakrakowska_01.png" width="750px"/></a>
<span class="highlight">Opera Krakowska</span>
*All highlighted words have been given this span
CSS
img.greyscale {
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */
-webkit-transition: grayscale 500ms;
-moz-transition: grayscale 500ms;
-o-transition: grayscale 500ms;
transition: grayscale 500ms;
}
img.greyscale:hover {
filter: none;
-webkit-filter: grayscale(0%);
}
.highlight{
background-color:#FF0;
}
Further more, I would like the transitions to fade in and out. Any help would be appreciated. Thanks in advance!