create a transition for a text color css code example Example: how to transition text color css nav a { transition: color 1s; /* For modern browsers */ }