Check out example codes for "give transition on box shadow". It will help you in understanding the concepts better.

Code Example 1

div {
  height: 200px;
  width: 200px;
  box-shadow: 0;
  transition: box-shadow 1s;
  border: 1px solid #eee;
}

div:hover {
  box-shadow: 0 0 3px #515151;
  ;
}

Learn ReactJs, React Native from akashmittal.com