0
我试图做一个非常简单的一套jQuery的动画用下面的代码:jQuery的动画问题(进行动画)
的事情之一是它不工作我如何计划,当你将鼠标悬停在菜单中,下面的div应该向下移动,菜单展开,当你悬停时,反过来应该发生!
该网站是http://www.twostepmedia.co.uk/intasound/services.php挽救把所有的HTML
$('.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`事件上的链接`$(“标签李一”)。悬停(` – ifaour 2011-01-11 09:06:23