css scale div code example

Example 1: transform scale

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

Example 2: transform:translateX()

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

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

Example 4: scale css

scale=For a two dimentional animation

Example 5: css scale

scale(sx)

scale(sx, sy)