transform-function

Matrix()

Perspective

perspective()arrow-up-rightSets the distance between the user and the z=0 plane.

Rotation

The rotate() CSSarrow-up-right function defines a transformation that rotates an element around a fixed point on the 2D plane, without deforming it. Its result is a <transform-function>arrow-up-right data type.

The fixed point that the element rotates around — mentioned above — is also known as the transform origin. This defaults to the center of the element, but you can set your own custom transform origin using the transform-originarrow-up-right property.

rotate()arrow-up-rightRotates an element around a fixed point on the 2D plane.rotate3d()arrow-up-rightRotates an element around a fixed axis in 3D space.rotateX()arrow-up-rightRotates an element around the horizontal axis.rotateY()arrow-up-rightRotates an element around the vertical axis.rotateZ()arrow-up-rightRotates an element around the z-axis.

Scaling (resizing)

scale()arrow-up-rightScales an element up or down on the 2D plane.scale3d()arrow-up-rightScales an element up or down in 3D space.scaleX()arrow-up-rightScales an element up or down horizontally.scaleY()arrow-up-rightScales an element up or down vertically.scaleZ()arrow-up-rightScales an element up or down along the z-axis.

Skewing (distortion)

skew()arrow-up-rightSkews an element on the 2D plane.skewX()arrow-up-rightSkews an element in the horizontal direction.skewY()arrow-up-rightSkews an element in the vertical direction.

Translation (moving)

translate()arrow-up-rightTranslates an element on the 2D plane.

The translate() CSSarrow-up-right function repositions an element in the horizontal and/or vertical directions. Its result is a <transform-function>arrow-up-right data type.

translate3d()arrow-up-rightTranslates an element in 3D space.translateX()arrow-up-rightTranslates an element horizontally.translateY()arrow-up-rightTranslates an element vertically.translateZ()arrow-up-rightTranslates an element along the z-axis.

Last updated