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

Code Example 1

document.getElementById("myDIV").style.transform = "rotate(7deg)";

Learn ReactJs, React Native from akashmittal.com