move in x direction css code example
Example 1: css transform size
.selector {
transform: scale(1.2); // Will upscale to 1.2
}
Example 2: 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