The other examples on his blog are even cooler... check this out. <a href="http://www.romancortes.com/blog/css-3d-meninas/" rel="nofollow">http://www.romancortes.com/blog/css-3d-meninas/</a>
Nice effect.<p>I think a bit of JS is being used to create the DIV structure, but that's not important.<p>It could also be improved a bit: you could remove the shading gradient from the Coke can mask PNG, and render the shading using an CSS gradient with RGBA values.
That would mimic the specular highlighting, and you could also animate the shading.<p>I still haven't quite grok'd the displacement method though... it must be carefully calculated background x pos offsets? (I don't have firebug on this machine)
This experiment is definitely worthy of a post. I haven't looked at how he did that or the "CSS Bird" shadow effect but I'm impressed that can be done without Javascript.
Very cool. My question is.. how did he scan the coke-can? <a href="http://www.romancortes.com/ficheros/coke-label.jpg" rel="nofollow">http://www.romancortes.com/ficheros/coke-label.jpg</a>