A couple weeks ago, we noted that Apple’s 3D CSS Transforms were slowly coming to the desktop via Safari 4, at least on Snow Leopard. Over this past weekend, though, WebKit developers put in a small patch that enables 3D CSS transforms in the latest nightly build of WebKit for Leopard, too.
The WebKit team developed a series of two-dimensional transforms that can be applied with CSS properties, then added the ability to animate them over time. Those transforms were used for the Safari 4 “welcome page” that is loaded whenever Safari 4 is first launched. Mozilla recently implemented support for two-dimensional transforms in the Gecko 1.9.1 rendering engine, which is used in Firefox 3.5.
The WebKit team later extended the transforms to work in three dimensions and then added the ability for the transforms to be rendered using a GPU, saving valuable CPU cycles for other work. The 3D transforms first became available in iPhone OS 2.0 so that Web app developers could add some advanced visuals with no additional programming expertise. Apple eventually submitted the revised 3D CSS transforms to the W3C for consideration as an official CSS standard. Since then, Apple enabled them in Snow Leopard builds of Safari 4, but had until this weekend left Leopard users out of the fun.
Comments on a bug report requesting the feature to be added to desktop versions of WebKit suggested that there were technical limitations that prevented support for the 3D transforms in Leopard. But a look at the code changes indicates that checks for Leopard were merely removed from the build process so that the feature would be “turned on” for Mac OS X versions 10.5 and above.
Leopard users can now get a feel for what the transforms can do by looking at several demos.
Web developer Charles Ying has put together an impressive photo browser called Snow Stack, which pans a series of photos in 3D and allows a better look at each image by zooming it “closer” to the viewer.

Loading comments...