Check out example codes for "how to transition text color css". It will help you in understanding the concepts better.

Code Example 1

nav a {
	transition: color 1s; /* For modern browsers */
}

Learn ReactJs, React Native from akashmittal.com