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

Code Example 1

div {
  transition: opacity seconds;
}

Code Example 2

div
{
  width: 100px;
  height: 100px;
  
background: red;
  transition: width 2s;

}

Learn ReactJs, React Native from akashmittal.com