Check out example codes for "scss transition". It will help you in understanding the concepts better.

Code Example 1

div {
  transition: all 0.5s ease;
  background: red;
  padding: 10px;
}
div:hover {
  background: green;
  padding: 20px;
}

Learn ReactJs, React Native from akashmittal.com