jQuery Animation How to - Animate UL height


We would like to know how to animate UL height.


<!DOCTYPE html>
<script type='text/javascript'
<style type='text/css'>
a {<!--   w w  w.  j  a  v  a  2  s.c  om-->
  display: inline-block;
  color: red;
  text-decoration: none;
  position: relative;
  border-top: 5px solid black;
  border-bottom: 5px solid black;
  line-height: 0px;

li {
  margin: 10px;
<script type='text/javascript'>//<![CDATA[ 
    $('a').animate({'line-height': '40px'});
  <div class="navigation">
      <li><a href="#" class="active">Home</a></li>
      <li><a href="#">Work</a></li>
      <li><a href="#">About</a></li>

The code above is rendered as follows: