div {
transform: rotate(45deg) translateX(50px);
}The transform property applies functions from left to right. So first the element rotates 45 degrees clockwise, then it moves 50px to the right along the rotated axis.
scale() changes the size of the element by stretching or shrinking it horizontally and/or vertically.
div {
transform: translate(100px, 0) rotate(90deg) scale(0.5);
width: 200px;
height: 100px;
background-color: teal;
}The element first moves 100px right, then rotates 90 degrees clockwise around its origin, then scales down to half its size.
CSS transform changes how an element looks on screen but does not change its position in the document flow or keyboard navigation order.
rotate(45deg) in their transform property?The attribute selector [style*='rotate(45deg)'] matches any element whose inline style contains the substring rotate(45deg).
