HTML5 Grayscale Image Hover

Posted by on Jan 21, 2011 in Blog | 20 comments

Leadin Image

Once upon a time, grayscale image has to be manually converted in order to be displayed on the web. Now with HTML5 canvas, images can be manipulated into grayscale without having to use image editing software. I’ve put together a demo to show you how to use HTML5 & jQuery to dynamically clone color images into grayscale (see demo). Credits: thanks to Darcy Clarke (my Themify’s partner) for the jQuery and Javascript code.

View Demo HTML5 Grayscale

View full post on Web Designer Wall – Design Trends and Tutorials

Incoming search terms:

20 Comments

  1. The animated effect is possible with this only not with CSS.

    Yes, Javascript error in IE8.

  2. nice

  3. Or you could use an svg filter without the need to tax the cpu (well if you had heaps of images) looping thru pixels.

  4. That’s a nice, subtle transition to colour too. Thanks for the article.

  5. Nice technique! But for less lines i might still do this with a simple sprite with b&w version / color version and a bit of CSS.

  6. Wouldn’t it just be easier to do this with CSS?

  7. “Works great on my XP / Chrome 8.0.552.237″
    Great sense of humor!

  8. Expectacular efecto con las imagenes, creo que muy interesantes!!!

  9. Thanks for this! I have just the use for it. :)

  10. Javascript errors in IE8

  11. That looks useful and the transition isn’t jarring.

  12. Can’t seem to get this to work. I tried to just run the demo on my site and the images get duplicated, one on top of the other, where the top one only appears when scrolled over. Any ideas?

  13. Nice article and thanks for sharing!

    On mouseover and mouseout events, maybe the animate duration value should be decreased a bit?

    This way you won’t have to wait so much (1000ms) to see the effect.

  14. Works great on my XP / Chrome 8.0.552.237 – and I agree, it’s AWESOME!
    Thanks for showing us this – I had never seen this jQuery trick explained before…

  15. Thank you!!!! I was just looking for an effect like this to use in my soon-to-be-redesigned portfolio!!

    Thank you thank you thank you! Exactly what I was after! :)

  16. I have this effect on my portfolio site, using the pre-HTML5 technique. Looks like I’m due for an update! Awesome tut, thanks!

  17. Doesn’t work on latest Chrome 10.0.634.0/Win7. Images don’t show up until you hover on them.

  18. AWESOME! Exactly what I was looking for! Thanks a lot!

  19. hello there…awesome tuts. can i re-post on my blog in my language? will credit to you