0
は、私は次のコードでjQueryのアニメーションのかなり簡単なセットを実行しようとしています(アニメーションに運びます)下のdivは下に移動し、メニューが展開され、あなたが外に出るとき、その逆が起こるはずです!jQueryの問題をアニメーションは
サイトは、すべてのHTMLを入れて保存するhttp://www.twostepmedia.co.uk/intasound/services.phpある
$('.tabs li a').animate({
height: '40'
}, 1000, function() {
// Animation complete.
});
$('#tabs-wrap').animate({
marginTop: '-=147'
}, 1000, function() {
// Animation complete.
});
$(".tabs").hover(function() {
$('#tabs-wrap').animate({
marginTop: '+=147'
}, 500, function() {
$('.tabs li a').animate({
height: '150'
}, 500, function() {
// Animation complete.
});
});
}, function() {
$('.tabs li a').animate({
height: '40'
}, 500, function() {
$('#tabs-wrap').animate({
marginTop: '-=147'
}, 500, function() {
// Animation complete.
});
});
});
1は、また、あなたが正しく 'img'タグを閉じていないと私はリンク' $に 'hover'イベントを置くことに注意してください(「タブのli A」)。'(完璧 – ifaour
を合わせますありがとうございました。私の質問がjqueryに関するものであれば – benhowdle89