Convert any image to pure CSS.
Well, it just puts the image in a canvas, calculates an array with the rgb values, and then... creates a single pixel shadow for each value!
Hum... to demonstrate the power of CSS!
And this may have other interesting properties, like creating loading screens with pixel art or pixel-level animation.
I made anotehr proof-of-concept using pixel-level animatinos here http://javier.xyz/morphin/
- Make the result smaller with smarter shadows and common background detection.
- Make animation and image morphing by using css transitions on the shadows. See http://javier.xyz/morphin/
- Add scale options to better suport pixel art.
- Support for custom image filters.
Run development server:
npm start
Build
npm run build