html transform scale code example

Example 1: css rotate

<style>
div {
  width: 80px;
  height: 80px;
  background-color: skyblue;
}
.rotated {
  transform: rotate(45deg);
  background-color: pink;
}
</style>

/* In body of html doc */
<div>Normal</div>
<div class="rotated">Rotated</div>

Example 2: transform scale

transform: scale(2, 0.5); /* Equal to scaleX(2) scaleY(0.5) */

Example 3: css scale

transform: scale(sx,sy);

Example 4: 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

Example 5: css scale

scale(sx)

scale(sx, sy)

Tags:

Html Example