Complete the code to rotate the box by 45 degrees.
div {
transform: [1](45deg);
}The rotate() function rotates an element by the specified angle.
Complete the code to move the box 100 pixels to the right.
div {
transform: [1](100px, 0);
}The translate() function moves an element horizontally and vertically.
Fix the error in the code to scale the box to twice its size.
div {
transform: [1](2);
}The scale() function changes the size of an element. Using scale(2) doubles its size.
Fill both blanks to skew the box 20 degrees horizontally and 10 degrees vertically.
div {
transform: skew([1]deg, [2]deg);
}The skew() function tilts an element by the given angles horizontally and vertically.
Fill all three blanks to rotate the box 90 degrees, then move it 50px right and 20px down.
div {
transform: [1](90deg) [2](50px, [3]);
}First, rotate(90deg) turns the box. Then, translate(50px, 20px) moves it right and down.
