Table of contents
Firefox 3.5 (Gecko 1.9.1) introduced support for CSS transforms; these are implemented using a set of CSS properties that let you apply affine linear transformations to HTML elements. These transformations include rotation, skewing, scaling, and translation. These properties are based upon a design proposed by the WebKit team. Meanwhile it's a W3C working draft.
Mozilla currently supports the
-moz-transform and
-moz-transform-origin properties.
Example: Rotating
This example creates an iframe that lets you use Google's home page, rotated 90 degrees about its bottom-left corner.
View live example
View screenshot of example
<div style="-moz-transform: rotate(90deg); -moz-transform-origin: bottom left;"> <iframe src="http://www.google.com/" width="500" height="600"></iframe> </div>
Example: Skewing and translating
This example creates an iframe that lets you use Google's home page, skewed by 10 degrees on the X axis.
View live example
View screenshot of example
<div style="-moz-transform: skewx(10deg) translatex(150px);
-moz-transform-origin: bottom left;">
<iframe src="http://www.google.com/" width="600" height="500"></iframe>
</div>
See also
-
-moz-transform, including CSS transform functions -
-moz-transform-origin

