asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > CSS Properties > Transform Functions

CSS Transform Functions


CSS transforms provide functions for modifying the coordinate space of the CSS visual formatting model, allowing authors to move, scale, rotate, and skew elements on a web page.

PropertyDescription
matrixDefines a 2D transformation matrix.
matrix3dDefines a 3D transformation matrix.
perspectiveSets the distance between the user and the z=0 plane.
rotateEnables rotation of an element.
rotate3dRotates an element around a fixed axis in 3D space.
rotateXRotates an element around its horizontal axis.
rotateYRotates an element around its vertical axis.
rotateZRotates an element around its Z-axis.
scaleChanges the size of an element.
scale3dScales an element up or down in 3D space.
scaleXIncreases or decreases the width of an element.
scaleYIncreases or decreases the height of an element.
scaleZScales an element up or down along the z-axis.
skewSkews an element along the X and Y axis.
skewXSkews an element in the horizontal direction.
skewYSkews an element in the vertical direction.
translateEnables changing the position of an element.
translate3dMoves an element in 3D space.
translateXMoves an element horizontally.
translateYMoves an element vertically.
translateZMoves an element along the z-axis.

The following example demonstrates use of the various transform functions.

 Show me 

This section assumes you already have some familiarity with the basics of CSS transforms. If not, I suggest starting with a brief overview on Understanding and Using CSS Transforms.

External reference: CSS Transforms Module Level 2.

See Also

CSS Animation Properties, CSS Filter Functions, CSS Transition Properties



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note