image mask/layer in html
Discussion
I've seen it before but forgot to see how it was done. Images in a webpage that appear greyscale until you hover the mouse over them, then they become full colour.
I think I saw it in some gallery software. thumbmails were greyscale at first; hover = colour
anyone know how it's done? example?
cheers
I think I saw it in some gallery software. thumbmails were greyscale at first; hover = colour
anyone know how it's done? example?
cheers
You could do that with a stylesheet and no javascript (assuming clicking the picture links to somewhere).
Haven't tested this and it will work for IE only but something along the lines of...
a.photo { filter
rogid
XImageTransform.Microsoft.BasicImage(grayscale=1); }
a.photo:hover { filter: none; }
<a class="photo" href="largephoto"><img src="thumbnail.jpg/></a>
Google on CSS+gray+filter for more info
Haven't tested this and it will work for IE only but something along the lines of...
a.photo { filter
rogid
XImageTransform.Microsoft.BasicImage(grayscale=1); } a.photo:hover { filter: none; }
<a class="photo" href="largephoto"><img src="thumbnail.jpg/></a>
Google on CSS+gray+filter for more info
Gassing Station | Photography & Video | Top of Page | What's New | My Stuff






