Course Technology Cengage Learning New Perspectives on HTML5 and CSS3, 8th Edition
Tutorial 4

Multiple 3D Transformations

To apply multiple transformations in three dimensions, apply the following transform style:

transform: effects;

where effects is a space-separated list of 3D transformation functions. Transformations are applied in the order in which they are listed. To modify the origin of all transformations in the list, apply the transform-origin style.

Use the web form below to generate the CSS code to apply multiple transformations to the preview image and to change the location of the transformation. Use the checkboxes to add or remove transformations from the space-separated list. The page displays two versions of the transformation: the top version shows a three-quarter view to help you better visualize the placement of the object in 3D space; the bottom version shows the view that the user would see in the web page.

3D Multiple Transformations

-300px 300px
-300px 300px
-300px 300px

-2 2
-2 2
-2 2

-360deg 360deg
-360deg 360deg
-360deg 360deg

-360deg 360deg
200px 1600px
transform: perspective(1200px) ;
transform-origin: initial;

Three-Quarter View

z+
z–
x+
x–
y–
y+

User's View

z+
z–
x+
x–
y–
y+