transform properties code example

Example 1: transform:translateX()

/* <length-percentage> values */
transform: translateX(200px);
transform: translateX(50%);

Example 2: image rotate css

div {
  width: 80px;
  height: 80px;
  background-color: skyblue;
}

.rotated {
  transform: rotate(45deg); /* Equal to rotateZ(45deg) */
  background-color: pink;
}

Example 3: css transform property

Read this comprehensive article about CSS animation transform property. 
It also has many useful examples that help you in best way.

https://medium.com/swlh/learn-css-transform-animation-zero-to-hero-6a2a643bd56b

Tags:

Css Example