CSS: Transform
CSS Transform I. What is CSS transform? transform allows us to transform the elements differently, such as rotate, scale, move, skew, etc. transform can have different values: translate scale rotate skew II. translate() With the translate value, we can move the element from one position to another on a webpage. If we want to move the element on the x-axis, we use translateX To move the element on the y-axis, we use translateY To move the element on both x-axis and y-axis, we use translate(x,y) Example 1 : The image will be moved 200px to the right (with a positive integer). img { transform : translateX ( 200 px ); } Example 2 : The image will be moved 200px to the left (with a negative integer). img { transform : translateX ( - 200 px ); } Example 3 : The image will be moved 200px down (with a positive integer). img { transform : translateY ( 200 px ); } Example 4 : The image will be moved 200px up (with a negative integer). img { tr...