![]() |
The Positional AdjustmentsMove elements in the 2D or 3D space, shifting them horizontally ( .element {
transform: translateX(20px) translateY(10px);
}
RotationsRotate elements by a specified angle, enabling the creation of visually dynamic layouts. .element {
transform: rotate(45deg);
}
ScalingScale elements in size, making them larger or smaller. It can be applied uniformly (scale) or independently along the x and y axes (scaleX, scaleY). .element {
transform: scale(1.5);
}
SkewingSkew elements by tilting them along the x or y axis, introducing a slanted effect. .element {
transform: skewX(20deg);
}
Combining TransformationsCombine multiple transformations to achieve complex visual effects. .element {
transform: translateX(20px) rotate(45deg) scale(1.2);
}
Transition AnimationsUse in conjunction with CSS transitions to create smooth animations when elements undergo transformations. .element { |
Reffered: https://www.geeksforgeeks.org
CSS |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |