How do you use the transition property in CSS?

Subh Prakash Singh
Invent the Future
The transition property adds smooth animation between property changes, such as color or position.
For example,
.box { transition: background-color 0.5s ease; }
.box:hover { background-color: lightblue; }









