![]() |
New Perspectives on HTML5 and CSS3, 8th Edition Tutorial 4 |
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.
transform: | perspective(1200px) ; |
transform-origin: | initial; |