何らかの理由で、.animate を適切に機能させることができないようです。誰でも理由がわかりますか?
これをコンテナdivに使用しています...
#valve-menu {
position: absolute;
width: 780px;
top: 200px;
background-color: #9C3;
margin-right: 9px;
margin-left: 10px;
}
それから..
#control-cover{
height: 50px;
width: 180px;
overflow: hidden;
position: absolute;
}
#control{
background-color: #0C9;
height: 200px;
width: 180px;
margin-right: 10px;
position: absolute;
}
私のJqueryはこれです
$(document).ready(function(){
//When mouse rolls over
$("#control-cover").mouseover(function(){
$(this).stop()
.animate({height:'150px'},
{queue:false, duration:600, easing: 'easeOutBounce'})
});
//When mouse is removed
$("#control-cover").mouseout(function(){
$(this).stop()
.animate({height:'50px'},
{queue:false, duration:600, easing: 'easeOutBounce'})
});
});
コントロール div を部分的に非表示にしてから、onmouseover を展開したいと考えています。