<script type="text/javascript">
$(function(){
$(".alan").mouseover(function(){
$(".alan").animate({
width:"300px",
height:"300px"
},300)
});
$(".alan").mouseout(function(){
$(".alan").animate({
width:"100px",
height:"100px"
},300)
});
})
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<title>cArleone</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(function(){
$(".alan").mouseover(function(){
$(".alan").stop().animate({
width:"300px",
height:"300px"
},300)
});
$(".alan").mouseout(function(){
$(".alan").stop().animate({
width:"100px",
height:"100px"
},300)
});
})
</script>
<style type="text/css">
.alan{width:100px;height:100px;background:red;}
</style>
</head>
<body>
<div class="alan"></div>
</body>
</html>