The simplest solution is to do it through transform-style: preserve-3d;, so you only need to set up each surface and change the container.
http://jsfiddle.net/cLhofbh6/
Unfortunately, IE does not support this attribute.
The other solution will be more painful, as it requires rotation on three sides and ensuring that the rotation axes are consistent.
The simplest solution is to do it through
transform-style: preserve-3d;
, so you only need to set up each surface and change the container.http://jsfiddle.net/cLhofbh6/
Unfortunately, IE does not support this attribute.
The other solution will be more painful, as it requires rotation on three sides and ensuring that the rotation axes are consistent.