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

Code Example 1

div {
  transition: width 2s linear 1s; /* Property Duration Easing Delay */
}

Code Example 2

/* Example from W3Schools */

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

}

Code Example 3

.selector {
  transition: transform 1s;
}

Code Example 4

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.btn {
  background-color: #f4511e;
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  font-size: 16px;
  margin: 4px 2px;
  opacity: 0.6;
  transition: 0.3s;
}

.btn:hover {opacity: 1}
</style>
</head>
<body>

<h2>Fading Buttons - "Fade in Effect"</h2>

<button class="btn">Hover Over Me</button>

</body>
</html>

Code Example 5

/* Simple CSS color transition effect on selector */

div {
	color: white;
  	background-color: black; 
}

div:hover {
	background-color: red;
}


/* Additional transition effects on selector */

div {
	background-color: black;
  	color: white;
  	height: 100px;
  	transition: width 1.5s, height 3s;
  	width: 100px;
  	
}

div:hover {
	background-color: red;
  	height: 300px;	
  	width: 150px;
}

Code Example 6

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

}

Learn ReactJs, React Native from akashmittal.com