アニメーション化したいフォームボックスのデモ用に次のコードがあります。
JS コードは次のとおりです。
$(".login-form").click(function() {
$(".login-form").animate({width:500, height: 300});
$(".footer").animate({width:430, height: 95});
});
HTML は次のとおりです。
<div id="wrapper">
<form name="login-form" class="login-form" action="" method="post">
<div class="gradient"></div>
<div class="header">
<h1>Logo here</h1>
<span>test</span></div>
<div class="content">
blah
</div>
<div class="footer">
<input type="button" name="submit" value="Click to test grow" class="register" />
</div>
</form>
</div>
現在、画面の中央に再配置せずにサイズを変更するだけです。
これを行うには何を追加する必要がありますか?