PDA

View Full Version : CSS Transform Property Guide



charlesprabhu
04-26-2023, 04:18 AM
The transform property applies a 2D or 3D transformation to an element. This property allows you to rotate, scale, move, skew, etc., elements.

- translate(x, y)
Defines a horizontal and vertical movement.

- translateX(x)
Defines a horizonal movement.

- translateY(y)
Defines a vertical movement.

- scale(x, y)
Defines scaling on X and Y axis.

- scaleX(x)
Defines scaling on X axis.

- scaleY(y)
Defines scaling on Y axis.

- rotate(deg)
Defines rotation by the angle specified in the parameter.

- skew(x angle, y angle)
Defines skew transformation along the X and Y axis.

Bajwa_builders
04-26-2023, 06:43 AM
To apply the multiple transforms in CSS, first, create a div container with a “<div>” tag and add an id inside the div tag. Then, create another div container and insert a class with a specific name. After that, access div and apply the “transform” CSS property and set the value “rotate(90)” degree.

lovespecialist6
04-26-2023, 09:12 AM
The transform CSS property lets you rotate, scale, skew, or translate an element. It modifies the coordinate space of the CSS visual..