We would like to know how to animate UL height.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<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;
}
</style>
<script type='text/javascript'>//<![CDATA[
$(function(){
$('a').animate({'line-height': '40px'});
});//]]>
</script>
</head>
<body>
<div class="navigation">
<ul>
<li><a href="#" class="active">Home</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">About</a></li>
</ul>
</div>
</body>
</html>
The code above is rendered as follows: