Effect How to - Fly up when hovering








Question

We would like to know how to fly up when hovering.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
ul {<!--from w  ww  .j a va2  s .c  om-->
  list-style-type: none;
}
li {
  float: left;
  margin: 5px;
}
a {
  display: block;
  line-height: 2500px;
  height: 100px;
  width: 100px;
  border-radius: 0 100px 100px 100px;
  text-align: center;
  background-color: #ccc;
  color: transparent;
  text-shadow: 0px 0px 100px rgba(0, 0, 0, 0);
  -webkit-transition: all .6s ease-in;
}

a:hover {
  background-color: #eee;
  line-height: 100px;
  text-shadow: 0px 0px 0px rgba(0, 0, 0, 1);
  -webkit-transition: all 0 ease-out;
}
</style>
</head>
<body>
  <ul>
    <li><a href="#">1</a></li>
    <li><a href="#">2</a></li>
    <li><a href="#">3</a></li>
    <li><a href="#">4</a></li>
    <li><a href="#">5</a></li>
  </ul>
</body>
</html>

The code above is rendered as follows: