Live data from Hacker News

Pure CSS new 3D effect

romancortes.com

1–10 of 31 posts

Re: Pure CSS new 3D effect

#4
post #2

Awesome hack. I don't really have any application for this, though.

Well I can think of a use or two for the bird example, but I'm unsure why I'd want to use this method over something javascript based.

Re: Pure CSS new 3D effect

#6
Nice effect.

I think a bit of JS is being used to create the DIV structure, but that's not important.

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.

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)

Post reply on HN