Check out example codes for "transform orgin css". It will help you in understanding the concepts better.

Code Example 1

div {
  transform: rotate(45deg);
  transform-origin: 20% 40%;
}

Learn ReactJs, React Native from akashmittal.com