Check out example codes for "how to enlarge image when hover on in css". It will help you in understanding the concepts better.

Code Example 1

img:hover {
transform: scale(1.3);
}

Learn ReactJs, React Native from akashmittal.com