This little demo uses perspective
and transform
to rotate the 'window', with transition
to smooth the transformation.
Source code is annotated to explain the CSS.
Mozilla's transition
animation (Firefox) is more jerky and the angles more jagged than Webkit's (Safari, Chrome). When writing this (June 2012) neither Opera nor Explorer support perspective
or rotateX
.