Dynamically pixelate an html image element
Posted
by Chris Armstrong
on Stack Overflow
See other posts from Stack Overflow
or by Chris Armstrong
Published on 2010-03-18T15:49:54Z
Indexed on
2010/03/18
15:51 UTC
Read the original article
Hit count: 381
I'm to take an image on a webpage, and then use javascript (or whatever would be best suited) to dynamically 'pixelate' it (e.g. into 20px squares). Then, as the user scrolls down the page, I need the image to gradually increase in resolution, till it is no longer pixelated.
Any ideas how I could go about doing this? I realise I could use php to resize an image and several times and just switch out the image, but that would require loading several extra images. Also, I know I could probably do the effect with flash & pixelbender, but I want to achieve it within the limitations of HTML5, CSS & Javascript if possible.
Appreciate any thoughts!
© Stack Overflow or respective owner