News for hackers. Stuff that matters.
Re:Pure CSS new 3D effect by ajross on Tuesday January 26, 2010 @11:25AM (#1078014)
No scripting. Here's a direct link to the effect page:

http://www.romancortes.com/ficheros/css-coke.html

Looks like it's just slicing up a wraparound texture vertically -- no scaling, just subsampling. The can and highlight are just composited on top. Slick and clever.

Note that it's really not "3D" in a meaningful sense. It's doing pixel-aligned warping only, and is hard-coded to a cylinder (any "lathe" shape would also work). This is the same trick that the Amiga used for the bouncing ball in 1985.

There are no comments on this comment yet.