I am trying you get a smooth jquery animate (expand dive smooth with animation like fade-in/out ) effect on mouse hover.
I have done this using css on green layer in below code but not able to implement Jquery smooth animation effect as i mention above lines.
Here is my simple code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<style>
.box1{
width:40px;
height:13px;
float:left;
font-size:.6em; color:#fff; background:#99CC00;
font-family:Arial, Helvetica, sans-serif;
z-index:1;
overflow:hidden;
}
.box1:hover{
width:200px;
float:left;
height:125px;
z-index:99999999;
position:relative;
cursor:default;
opacity:.8;
filter: alpha(opacity=75);
overflow:visible;
}
.box2{
width:40px;
height:auto;
float:left;
font-size:.6em; color:#fff; background:#FF6600;
font-family:Arial, Helvetica, sans-serif;
margin-top:1px;
opacity:.8;
filter: alpha(opacity=75);
}
.box2:hover{
width:200px;
float:left;
height:125px;
position:relative;
}
</style>
</head>
<body>
<table width="160" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40" height="40" valign="top" bgcolor="#e4e4e4">
<table width="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div style="width:40px; height:auto; float:left; position:absolute;">
<span class="box1">Hello <ul><li>Sanket</li><li>Pratp</li><li>Deora</li></ul></span>
</div>
</td>
</tr>
<tr>
<td><div style="width:40px; height:auto; float:left; position:absolute; top:21px;"><span class="box2">Sanket</span></div></td>
</tr>
<tr>
<td></td>
</tr>
</table>
</td>
<td width="40" height="40" valign="top" bgcolor="#CCCCCC"> </td>
<td width="40" height="40" valign="top" bgcolor="#999999"> </td>
<td width="40" height="40" valign="top" bgcolor="#666666"> </td>
</tr>
<tr>
<td width="40" height="40" valign="top" bgcolor="#666666"> </td>
<td width="40" height="40" valign="top" bgcolor="#999999"> </td>
<td width="40" height="40" valign="top" bgcolor="#CCCCCC"> </td>
<td width="40" height="40" valign="top" bgcolor="#E4E4E4"> </td>
</tr>
<tr>
<td width="40" height="40" valign="top" bgcolor="#E4E4E4"> </td>
<td width="40" height="40" valign="top" bgcolor="#CCCCCC"> </td>
<td width="40" height="40" valign="top" bgcolor="#999999"> </td>
<td width="40" height="40" valign="top" bgcolor="#666666"> </td>
</tr>
<tr>
<td width="40" height="40" valign="top" bgcolor="#666666"> </td>
<td width="40" height="40" valign="top" bgcolor="#999999"> </td>
<td width="40" height="40" valign="top" bgcolor="#CCCCCC"> </td>
<td width="40" height="40" valign="top" bgcolor="#E4E4E4"> </td>
</tr>
</table>
</body>
</html>
I am new to jquery, help much appreciated.