CSS Property Value How to - transition: color 0.25s ease-in 0;








Question

We would like to know how to transition: color 0.25s ease-in 0;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
a {<!--  ww  w  .j  a v  a 2 s  .  c  om-->
  -webkit-transition: color 0.25s ease-in 0;
  -moz-transition: color 0.25s ease-in;
  -o-transition: color 0.25s ease-in 0;
  transition: color 0.25s ease-in 0;
  color: #333;
  text-decoration: none;
  font-family: Arial;
  font-size: 10pt;
  line-height: 16pt;
  font-weight: normal;
}

a:hover {
  color: #fff;
}
</style>
</head>
<body>
  <ul>
    <li><a class="link" href="#">home</a> <a class="link" href="#">home</a>
    </li>
  </ul>
</body>
</html>

The code above is rendered as follows: