基本的な考え方:
はJQuery:
$('#go').click(function() {
$('#form').animate({
'height': '80px',
'text-indent': '50px',
'padding-top':'20px'
}, {
queue: false,
duration: 1500,
complete:function(){
$('html,body').css('overflow-y','visible');
}
});
$('#results').show({
type: 'slide',
direction: 'up'
}, {
queue: false,
duration: 1500
});
});
CSS:
#form {
background-color:blue;
text-indent:300px;
width:100%;
height:100%;
padding-top:200px;
}
#results {
background-color:yellow;
display:none;
height:700px;
}
body, html {
width:100%;
height:100%;
overflow:hidden;
}
HTML:
<div id="form">
<input type="text" />
<input type="button" id="go" value="go" />
</div>
<div id="results">Search results</div>
デモ:彼らはすべてのCSS3アニメーションを使用している http://jsfiddle.net/AlienWebguy/hwAtU/
これはすべてCSS3アニメーションです。 – Mohsen
非常に簡単なものです。 – Mohsen
これは、他のブラウザでも同じやり方をしている可能性がありますが、これはIE9で必要な印象を与える典型的なMicrosoftのトリッキーです。 – Rob